Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if CLIENT then
- local hunger = false -- false / true
- local hide = {
- CHudHealth = true,
- CHudBattery = true,
- DarkRP_HUD = true,
- DarkRP_Hungermod = true,
- }
- hook.Add( "HUDShouldDraw", "HideHUD", function( name )
- if ( hide[ name ] ) then return false end
- end )
- surface.CreateFont("SlawerFontFiveM",{ font = "Pricedown Bl", size=40, weight=1000 })
- local function drawLogo(mat,x,y,w,h,r,g,b)
- surface.SetDrawColor( r,g,b, 255 )
- surface.SetMaterial( mat)
- surface.DrawTexturedRect( x,y,w,h )
- end
- hook.Add("HUDPaint","FiveMHookPaint",function()
- 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))
- 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))
- 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))
- 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))
- draw.SimpleTextOutlined(LocalPlayer():getDarkRPVar("job"),"SlawerFontFiveM",ScrW() - 20,100,Color(255,255,255),TEXT_ALIGN_RIGHT,TEXT_ALIGN_TOP,1,Color(0,0,0))
- drawLogo(Material("materials/slawer/fivem_luggage.png"),ScrW() - 55 - surface.GetTextSize(LocalPlayer():getDarkRPVar("job")),105,30,30,255,255,255)
- draw.SimpleTextOutlined(LocalPlayer():Health(),"SlawerFontFiveM",ScrW() - 20,140,Color(255,255,255),TEXT_ALIGN_RIGHT,TEXT_ALIGN_TOP,1,Color(0,0,0))
- drawLogo(Material("materials/slawer/fivem_cardiogram.png"),ScrW() - 55 - surface.GetTextSize(LocalPlayer():Health()),145,30,30,255,255,255)
- if hunger then
- 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))
- drawLogo(Material("materials/slawer/fivem_burger.png"),ScrW() - 50 - 130 - (string.len(LocalPlayer():getDarkRPVar("Energy")) * 15),145,30,30,255,255,255)
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement