I got problem with the money. The amount of money won't show up, it is just "0$" and even i get salary it won't raise.
local ply = LocalPlayer()
if not IsValid(ply) then return end
local money = LocalPlayer():getDarkRPVar("money")
local playername = ply:Nick()
draw.SimpleText(ply:Nick(),"text",135,ScrH() -1070,Color(255,255,255,220),1,TEXT_ALIGN_CENTER,TEXT_ALIGN_CENTER)
draw.SimpleText(ply:getDarkRPVar( "job" ),"Bartext",384,ScrH() -1070,Color(255,255,255,220),1,TEXT_ALIGN_CENTER,TEXT_ALIGN_CENTER)
draw.SimpleText(money,"text",600,ScrH() -1070,Color(255,255,255,220),1,TEXT_ALIGN_CENTER,TEXT_ALIGN_CENTER)
draw.SimpleText("$"..ply:getDarkRPVar( "salary" ),"text",700,ScrH() -1070,Color(255,255,255,220),1,TEXT_ALIGN_CENTER,TEXT_ALIGN_CENTER)
Use:
LocalPlayer():getDarkRPVar('money')
uh m8, exacly THAT is in his code already
Run this for test:
hook.Add("HUDPaint","test",function()
draw.RoundedBox(0,0,0,100,15,Color(100,100,100))
draw.DrawText("Money:"..LocalPlayer():getDarkRPVar('money'),"default",0,0,Color(255,255,255))
end)
dude hes already doing that, in essence. the issue isnt that it creates errors or doesnt exist, its just that its 0
can you post the full code? i feel like "money" might be out of scope
Alright, i will.
Sorry, you need to Log In to post a reply to this thread.