Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. if CLIENT then
  2.  
  3. local hunger = false -- false / true
  4.  
  5. local hide = {
  6. CHudHealth = true,
  7. CHudBattery = true,
  8. DarkRP_HUD = true,
  9. DarkRP_Hungermod = true,
  10. }
  11.  
  12. hook.Add( "HUDShouldDraw", "HideHUD", function( name )
  13. if ( hide[ name ] ) then return false end
  14. end )
  15.  
  16. surface.CreateFont("SlawerFontFiveM",{ font = "Pricedown Bl", size=40, weight=1000 })
  17. local function drawLogo(mat,x,y,w,h,r,g,b)
  18. surface.SetDrawColor( r,g,b, 255 )
  19. surface.SetMaterial( mat)
  20. surface.DrawTexturedRect( x,y,w,h )
  21. end
  22. hook.Add("HUDPaint","FiveMHookPaint",function()
  23.  
  24. draw.SimpleTextOutlined( "$ " .. string.Comma(LocalPlayer():getDarkRPVar("money")),"SlawerFontFiveM",ScrW() - 20,20,Color(0,150,0),TEXT_ALIGN_RIGHT,TEXT_ALIGN_TOP,1,Color(0,0,0))
  25. draw.SimpleTextOutlined( string.Comma(LocalPlayer():getDarkRPVar("money")),"SlawerFontFiveM",ScrW() - 20,20,Color(255,255,255),TEXT_ALIGN_RIGHT,TEXT_ALIGN_TOP,1,Color(0,0,0))
  26.  
  27. draw.SimpleTextOutlined("$ " .. string.Comma(LocalPlayer():GetNWInt( "ZoniaRP:DirtyMoney:Player:Amount")),"SlawerFontFiveM",ScrW() - 20,60,Color(255,0,0),TEXT_ALIGN_RIGHT,TEXT_ALIGN_TOP,1,Color(0,0,0))
  28. draw.SimpleTextOutlined(string.Comma(LocalPlayer():GetNWInt( "ZoniaRP:DirtyMoney:Player:Amount")),"SlawerFontFiveM",ScrW() - 20,60,Color(255,255,255),TEXT_ALIGN_RIGHT,TEXT_ALIGN_TOP,1,Color(0,0,0))
  29.  
  30. draw.SimpleTextOutlined(LocalPlayer():getDarkRPVar("job"),"SlawerFontFiveM",ScrW() - 20,100,Color(255,255,255),TEXT_ALIGN_RIGHT,TEXT_ALIGN_TOP,1,Color(0,0,0))
  31. drawLogo(Material("materials/slawer/fivem_luggage.png"),ScrW() - 55 - surface.GetTextSize(LocalPlayer():getDarkRPVar("job")),105,30,30,255,255,255)
  32.  
  33. draw.SimpleTextOutlined(LocalPlayer():Health(),"SlawerFontFiveM",ScrW() - 20,140,Color(255,255,255),TEXT_ALIGN_RIGHT,TEXT_ALIGN_TOP,1,Color(0,0,0))
  34. drawLogo(Material("materials/slawer/fivem_cardiogram.png"),ScrW() - 55 - surface.GetTextSize(LocalPlayer():Health()),145,30,30,255,255,255)
  35.  
  36. if hunger then
  37. draw.SimpleTextOutlined(LocalPlayer():getDarkRPVar("Energy"),"SlawerFontFiveM",ScrW() - 20 - 125,140,Color(255,255,255),TEXT_ALIGN_RIGHT,TEXT_ALIGN_TOP,1,Color(0,0,0))
  38. drawLogo(Material("materials/slawer/fivem_burger.png"),ScrW() - 50 - 130 - (string.len(LocalPlayer():getDarkRPVar("Energy")) * 15),145,30,30,255,255,255)
  39. end
  40. end)
  41.  
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement