Eyo, I was just wondering if anyone knew how to place text over the entitie picture in the tab on DarkRP like the printers, certain ones I want to have text printed over the actual picture in the f4 tab.
I was thinking of using this label:PaintOver()
but I'm not sure where to place it.
[lua]local function AddAmmoIcon(Model, description, command)
local icon = vgui.Create("SpawnIcon")
icon:InvalidateLayout( true )
icon:SetModel(Model)
icon:SetSize(64, 64)
icon:SetToolTip(description)
icon.DoClick = function() LocalPlayer():ConCommand("darkrp "..command) end
AmmPanel:AddItem(icon)
end[/lua]
Line 578-586 of client/showteamtabs.lua. This is for not DarkRP 2.5.
Use [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexe7eb-2.html[/url] if you need any additional advice with the functionality.
How would I actualy make this print some text over the picture though? Could I add you on steam?
Sorry, you need to Log In to post a reply to this thread.