DarkRPHud

How do i make it so it displays Name, Job, Money and Sallary?

I have this


 draw.SimpleText("Name:", "TargetID", ScrW() - 2000 - -100, ScrH() - 120 - 12, Color(255,255,255,255)) 

I would like it to be next to the name ect


draw.SimpleText("Name: " .. LocalPlayer():Name(), "TargetID", ScrW() - 2000 - -100, ScrH() - 120 - 12, Color(255,255,255,255))

For jobs etc you need to get the darkrp vars, such as, getDarkRPVar( “money” )

Exampl;e of the getDarkRPVar("money) Please? I have used getDarkRPVar(“Energy”) But i assume it wont be the same way?


draw.SimpleText("Money: " .. getDarkRPVar( "money" ), "TargetID", ScrW() - 2000 - -100, ScrH() - 120 - 12, Color(255,255,255,255))

I get this error when i do that :confused:


 [ERROR] addons/darkrpmodification-master/lua/darkrp_modules/hudreplacement/cl_hudreplacement.lua:66: attempt to call global 'getDarkRPVar' (a nil value)
  1. Base - addons/darkrpmodification-master/lua/darkrp_modules/hudreplacement/cl_hudreplacement.lua:66
   2. fn - addons/darkrpmodification-master/lua/darkrp_modules/hudreplacement/cl_hudreplacement.lua:408
    3. unknown - addons/ulib/lua/ulib/shared/hook.lua:183
 


LocalPlayer():getDarkRPVar( "money" )

My bad.