bad argument #1 to 'gmatch'

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 :slight_smile:
Thanks in advance!

In


draw.DrawText(Player:getDarkRPVar("job"), "JobFont", 0, 145, col2, TEXT_ALIGN_CENTER)

try replacing Player:getDarkRPVar(“job”) with just Job

Think that might of fixed it :slight_smile: I’ll do some testing with it and let you know what happens