• DarkRp Hud
    3 replies, posted
I was wanting to completely redo the hud in the bottom left hand corner of the screen, could anyone point me in the right direction as to how to do this? I tried the derma skin file, cl_vgui, and showteamtabs, but I cannot seem to find the HUD. Also if someone is willing to help me out, I will pay you. Add me on steam, as booker01. Thanks
[QUOTE=MrAnonymous;22732895]I was wanting to completely redo the hud in the bottom left hand corner of the screen, could anyone point me in the right direction as to how to do this? I tried the derma skin file, cl_vgui, and showteamtabs, but I cannot seem to find the HUD. Also if someone is willing to help me out, I will pay you. Add me on steam, as booker01. Thanks[/QUOTE] Hi Mr. Anon, its h3lpless :smug: Depending on what version of DarkRP it is it should be in cl_init, in the version I am currently looking at it starts at line 112 Should look something like this [lua]function GM:HUDPaint() self.BaseClass:HUDPaint() local hx = 9 local hy = ScrH() - 25 local hw = 190 local hh = 10 draw.RoundedBox(6, hx - 8, hy - 90, hw + 30, hh + 110, Color(0, 0, 0, 100)) draw.RoundedBox(6, hx - 4, hy - 4, hw + 8, hh + 8, Color(0, 0, 0, 200)) if (LocalPlayer():Health() > 0) then draw.RoundedBox(4, hx, hy, math.Clamp(hw * (LocalPlayer():Health() / 100), 0, 190), hh, Color(140, 0, 0, 180)) end draw.DrawText(LocalPlayer():Health(), "TargetID", hx + hw / 2, hy - 6, Color(255, 255, 255, 200), 1) --draw.DrawText("Job: " .. LocalPlayer():GetNWString("job") .. "\n$" .. LocalPlayer():GetNWInt("money"), "TargetID", hx - 1, hy - 49, Color(0, 0, 0, 200), 0) draw.DrawText("Job: " .. LocalPlayer():GetNWString("job") .. "\nWallet: $" .. LocalPlayer():GetNWInt("money") .. "", "TargetID", hx + 1, hy - 49, Color(0, 0, 150, 200), 0) draw.DrawText("Job: " .. LocalPlayer():GetNWString("job") .. "\nWallet: $" .. LocalPlayer():GetNWInt("money") .. "", "TargetID", hx, hy - 50, Color(0, 0, 0, 255), 0) draw.DrawText("Salary: $" .. LocalPlayer():GetNWInt("salary"), "TargetID", hx + 1, hy - 70, Color(0, 150, 0, 200), 0) draw.DrawText("Salary: $" .. LocalPlayer():GetNWInt("salary"), "TargetID", hx, hy - 71, Color(0, 0, 0, 255), 0)[/lua]
Oh ok Thanks you so much H3lpless you never let me down. That was exactly what I was looking for!
Sadly you will have to keep most variables or it break something else, which is sad becuse the DarkRP HUD is very bloated
Sorry, you need to Log In to post a reply to this thread.