1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

How do you display money when creating a HUD in DARKRP?

Discussion in 'DarkRP Modding Questions & Help' started by 푸딛P, Sep 11, 2019.

Tags:
  1. 푸딛P

    푸딛P New Member

    How do you display money when creating a HUD in DARKRP?


    I'll show you the code I have

    hook.Add( "HUDPaint", "HUDPaint_DrawABox", function()
    local scrw,scrh = ScrW(), ScrH()
    local boxW,boxH = scrw * .25, scrh * .25
    draw.RoundedBox(0, 0, ScrH() - 28, 1300, 28, Color(0,0,0,180))

    local ply = LocalPlayer()
    local health = LocalPlayer():Health()
    local armor = LocalPlayer():Armor()
    local velocity = ply:GetVelocity():Length()
    draw.RoundedBox(0, 35, ScrH() - 26, 225, 25, Color(0,0,0,180))
    draw.RoundedBox(0, 300, ScrH() - 26, 225, 25, Color(0,0,0,180))
    draw.RoundedBox(0, 70, ScrH() - 22, health * 1.85, 17, Color(255,72,72,145))
    draw.RoundedBox(0, 335, ScrH() - 22, armor * 1.85, 17, Color(18,102,255,145))
    end)
     

Share This Page