• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Why cant i see the vanilla icons on modded weapons?

Solomon

Refugee
Im making some modlet weapon mod for the basics i copied over literally anything from the generic pistol, renamed it, modified a few stats and created a new ammo for it.

Theres only one problem, it doesnt have any icon just the empty square where i can select it.

Why does this happen and how can i fix it?

 
Need to define a icon. The default items are given icons based on their names. Modded items need to have the icon defined. 

<property name="CustomIcon" value="gunHandgunT1Pistol"/>


That should work. You can make your icon look different by adding an icon tint using hex color values.

<property name="CustomIconTint" value="ff9f9f"/>


Or you can make a custom icon of your own, but that's a lot more work. 

 
Need to define a icon. The default items are given icons based on their names. Modded items need to have the icon defined. 

<property name="CustomIcon" value="gunHandgunT1Pistol"/>


That should work. You can make your icon look different by adding an icon tint using hex color values.

<property name="CustomIconTint" value="ff9f9f"/>


Or you can make a custom icon of your own, but that's a lot more work. 
Thank you but i have a question regarding to this fix, it still uses the vanilla icons right? So the mod is still serverside only?

 
Yeah, it'll use the vanilla icon still. If you look in your game folder, there is an ItemIcons folder with all of them in it. You can reference any of them you want and still stay serverside only. 

 
Back
Top