• My HUD is not working properly! SOZ!
    3 replies, posted
Well, i made a HUD so far(My First One) [img]http://i.imgur.com/z2WqXZD.jpg[/img] However, when a player joins he gets this error: [ERROR] addons/greekshud/lua/greekshud/client/cl_hud.lua:73: attempt to call method 'getDarkRPVar' (a nil value) 1. fn - addons/greekshud/lua/greekshud/client/cl_hud.lua:73 2. unknown - addons/ulib/lua/ulib/shared/hook.lua:110 [img]http://i.imgur.com/PGzZqvh.jpg[/img] The code: Line:67-73. // Money draw.RoundedBox(0, 180, ScrH() - 25, 150, 20, Color(43, 43, 52, 255))--Money Box. draw.RoundedBox(0, 175, ScrH() - 25, 5, 25, Color(0, 255, 0, 255))--Left |. 15 Distance. draw.RoundedBox(0, 330, ScrH() - 25, 5, 25, Color(0, 255, 0, 255))--Right |. draw.RoundedBox(0, 175.5, ScrH() - 30, 160, 5, Color(0, 255, 0, 255))--Top --. draw.RoundedBox(0, 175, ScrH() - 5, 160, 5, Color(0, 255, 0, 255))--Bottom --. draw.SimpleText("Money: "..DarkRP.formatMoney(client:getDarkRPVar("money")), "DermaDefaultBold", 186, ScrH() - 24.5, Color(255, 255, 255, 255), 0, 0)-- Server Money.
I will try it.
Didnt work. Any other ideas? [editline]7th May 2017[/editline] This time i dont get script errors but there is not a HUD. If i go to the file and just save it without editing shit it works. PM me to send you the full code.
Sorry, you need to Log In to post a reply to this thread.