• Materials
    6 replies, posted
Does anybody know how to set the material of a spawn icon. [PHP] local icon = vgui.Create("SpawnIcon") icon:InvalidateLayout( true ) icon:SetModel(Model) icon:SetIconSize(64) icon:SetToolTip(description) icon.DoClick = function() LocalPlayer():ConCommand("say "..command) end [/PHP] That's my code for a spawnicon, I've checked garrysmod wiki and it doesn't tell you how to use a custom material. Any ideas?
You cant use a custom material, use a DImageButton
I don't think you can, you just have to use an existing model :ninja:
I wish Garry would stop making useless updates that break things, and start working on these little things that would be uber useful.
He didn't break anything, they've always been like this.
He meant breaking other things and not making this
Oh ok.
Sorry, you need to Log In to post a reply to this thread.