I recently changed my shared.lua and addentities.lua and updated my steam using TCAdmin, and have been getting this error in my console:
[ERROR] gamemodes/darkrp/gamemode/client/hud.lua:95: attempt to call method ‘getDarkRPVar’ (a nil value)
- DrawInfo - gamemodes/darkrp/gamemode/client/hud.lua:95
- DrawHUD - gamemodes/darkrp/gamemode/client/hud.lua:232
- unknown - gamemodes/darkrp/gamemode/client/hud.lua:344
and in my .lua file, this is in line 95:
local Salary = LANGUAGE.salary … GAMEMODE.Config.currency … (localplayer:getDarkRPVar(“salary”) or 45)
And I haven’t changed a single thing in the hud.lua .
[editline]16th June 2013[/editline]
It turns out something in my shared.lua was wrong, because I reverted to the default and it works. Once I figure out why it wasn’t working I will post it here.