• How do you make a mdl spawnIcon
    4 replies, posted
Hello. I have made an advance buymenu for my GM. I wanted to take it to the next step. So I was wondering how you make the SpawnIcon. All I know the function. But I want to make custom spawnIcons. And to do this I need to make a mdl. I was wondering how you would make it -thx :D
you can just make a material with vtfedit and use [b][url=http://wiki.garrysmod.com/?title=DImageButton.SetImage]DImageButton.SetImage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
[lua]myButton = vgui.Create("DImageButton", ParentPanel) myButton:SetImage( "VGUI/entities/npc_<NPCNAMEHERE>" or "<custom path to VTF file>" ) myButton:SizeToContents()[/lua] Do that without the "or" in the myButton:SetImage
Just set the model of the spawnicon to your model, it will build by itself. if its spawnicons your talking about otherwise use what the guy above said
I c ok thx
Sorry, you need to Log In to post a reply to this thread.