Discord
Steam
/
Help
/
Need help with..
Login/Join
Event Log
Need help with getting the material at the center bottom of my screen in GMOD.
2 replies, posted
Search
In This Thread
if CLIENT then net.Receive('economy_taxupdate',function() Economy.CitizienTax = net.ReadDouble() Economy.CopsTax = net.ReadDouble() end) net.Receive("update_economy",function() Economy.Current = net.ReadDouble() Economy.Money = net.ReadDouble() end) hook.Add( "HUDPaint", "DarkRP_Economy", function() local w, h = 200,20 local Economys = Economy and Economy.Current or 0 local Money = Economy and Economy.Money or 0 draw.RoundedBoxEx( 2, ScrW()/2-(w/2), 0, w, h, Color(0,0,0,240), false, false, true, true ) draw.RoundedBoxEx( 2, ScrW()/2-((w-2)/2), 0, w-2, h-1, Color(76,76,76,200), false, false, true, true ) surface.SetMaterial( Material("gui/center_gradient.png") ) surface.SetDrawColor( Color(0,255,0,255) ) surface.DrawTexturedRect( ScrW()/2, 0, (w)/2, h-2 ) surface.SetDrawColor( Color(255,255,0,255) ) surface.DrawTexturedRect( ScrW()/2-(w/2)/2, 0, (w)/2, h-2 ) surface.SetDrawColor( Color(255,0,0,255) ) surface.DrawTexturedRect( ScrW()/2-(w/2), 0, (w)/2, h-2 ) local x = ScrW()/2-(w-5)/2 + ( ((w-5)*Economys)/100 ) surface.SetDrawColor( Color(0,0,0,240) ) surface.DrawLine( x, -1, x, h-2 ) draw.DrawText( "Economy Status: "..Money.." $", "DermaDefaultBold", ScrW()/2+1, h+3, Color(0,0,0,255), TEXT_ALIGN_CENTER ) draw.DrawText( "Economy Status: "..Money.." $", "DermaDefaultBold", ScrW()/2, h+2, Color(255,255,255,255), TEXT_ALIGN_CENTER ) end) end
Can you post a screenshot in-game of what it is?
please put it in code tag..this hurts my eyes
Sorry, you need to
Log In
to post a reply to this thread.