• SWEP Hud icon doesn't work
    7 replies, posted
My SWEP hud icon just don't want to work... what am I doing wrong? I've put the .vtf & .vmt files into "materials/weapons/", but nothing happened, here the .vmt codes: [CODE] "UnlitGeneric" { "$basetexture" "weapons/ioncannonicon" "$ignorez" "1" "$vertexcolor" "1" "$vertexalpha" "1" "$nolod" "1" } [/CODE]
hud icon? You mean the sandbox spawnmenu icon?
[QUOTE=Robotboy655;42509361]hud icon? You mean the sandbox spawnmenu icon?[/QUOTE] The weapon hud icon thing when you scroll or press numbers on your keyboard to select weapons.
[url]http://wiki.garrysmod.com/page/WEAPON/DrawWeaponSelection[/url] You gotta specify SWEP.WepSelectIcon
[QUOTE=Robotboy655;42509767][url]http://wiki.garrysmod.com/page/WEAPON/DrawWeaponSelection[/url] You gotta specify SWEP.WepSelectIcon[/QUOTE] But I also need the .vtf files inside a folder called "hud" right?
The file path doesn't matter at all. You just gotta put it into the variable I mentioned. [code]SWEP.WepSelectIcon = surface.GetTextureID( "weapons/swep" )[/code]
[QUOTE=Robotboy655;42511907]The file path doesn't matter at all. You just gotta put it into the variable I mentioned. [code]SWEP.WepSelectIcon = surface.GetTextureID( "weapons/swep" )[/code][/QUOTE] It worked, but it shows the purple & black image... the size of my image is 512x256 if that has something to do with. Nevermind, got it. Thanks.
You specified the wrong image/your vmt is incorrect.
Sorry, you need to Log In to post a reply to this thread.