Jump to content
Sign in to follow this  
Kydoimos

Re-naming Inventory Items

Recommended Posts

Heya - can anybody tell me - is there an easy way to re-name items in the inventory? For instance, I've re-textured some uniforms and I want to re-name them on the inventory screen. Any suggestions? Also, is there a way to change the picture?

Share this post


Link to post
Share on other sites

Ah, that's great - thanks matey. I was wondering though, I'm trying to make a MP template without mods :p. Just because it makes it more appealing for people intending to join the server. Is there any way at all you can change this without resorting to an add-on? If not, no probs! I was just curious if it could be done! I realise I'm probably asking the impossible.

Share this post


Link to post
Share on other sites

The way I'm approaching it for my mission is to create an inventory GUI which I will replace the default one. This allows for items to be renamed and also add new items, although the downside is it's somewhat time consuming and difficult and new items don't have a 3D model.

Share this post


Link to post
Share on other sites

That's interesting underdaoath - is this something you can achieve without a mod or an add-on? For instance, if you were using it for an MP mission would you be able to play the mission without any additional downloads?

Share this post


Link to post
Share on other sites

Coding - that add-on you've given me the link for - is it possible to change item names on it? So I guess, basically, outside of changing the GUI or using an add-on, there's no way one can alter item names - neither with a script or a .sqf file or anything easy like that?

Share this post


Link to post
Share on other sites

Yes.

In the addon you simply can set the names if you unpbo it you can see that.

There might be a way for you. But it is definitive complicated...

You need to find the InventoryDisplay, cycle through all items in it and change the names + icons for the item if it is the item, you edited.

some hint what I mean:

((uiNamespace getVariable "hg_hudDayZ") displayCtrl 55521) ctrlSetText format ["HGF\media\hud\status_temp_%1_ca.paa", _n];

((uiNamespace getVariable "hg_hudDayZ") displayCtrl 55521) ctrlSetTextColor [_r/255, _g/255, _b/255, 1];

Maybe this works but I can not promise it...

Share this post


Link to post
Share on other sites

Okay Coding, cheers - I'll try that add-on. I think anything else is a bit beyond me!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×