Hey guys so I've been making a hud for above players heads,
However I'm running into some issues, the hud works perfectly fine but whenever I save any lua file my hud file give
[ERROR] lua/includes/modules/draw.lua:146: bad argument #1 to 'gmatch' (string expected, got nil)
1. gmatch - [C]:-1
2. DrawText - lua/includes/modules/draw.lua:146
3. v - addons/darkrpmodification-master/lua/darkrp_modules/voice/cl_enhud.lua:41
4. unknown - lua/includes/modules/hook.lua:84
Here's my code:
-snip-
I've tried multiple ways of fixing this with no success so I'm now turning to you lads to help :)
Thanks in advance!
In [code]draw.DrawText(Player:getDarkRPVar("job"), "JobFont", 0, 145, col2, TEXT_ALIGN_CENTER)[/code] try replacing Player:getDarkRPVar("job") with just Job
[QUOTE=Donkie;51609050]In [code]draw.DrawText(Player:getDarkRPVar("job"), "JobFont", 0, 145, col2, TEXT_ALIGN_CENTER)[/code] try replacing Player:getDarkRPVar("job") with just Job[/QUOTE]
Think that might of fixed it :) I'll do some testing with it and let you know what happens
Sorry, you need to Log In to post a reply to this thread.