ERROR: GAMEMODE:'HUDPaint' Failed

Hi, getting the following error but can’t tell what’s causing it.

“ERROR: GAMEMODE:‘HUDPaint’ Failed: [@lua\includes\modules\draw.lua:103] bad argument #1 to ‘DrawText’ (string expected, got nil)
ERROR: GAMEMODE:‘HUDPaint’ Failed: [@lua\includes\modules\draw.lua:103] bad argument #1 to ‘DrawText’ (string expected, got nil)”

Any idea how I can find the culprit?

EDIT: FIXED

posting your code might help

[editline]asd[/editline]
and use [noparse]




[/noparse] tags

Can we see your HUDPaint?

[editline]24th July 2012[/editline]

ninja’d




draw.SimpleText("Name:", "Nameofperson", 25 + 30,ScrH() - 155, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)

draw.SimpleText("Cash:", "Cash", 25 + 30,ScrH() - 135, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)
draw.SimpleText("Salary:", "Salary", 25 + 30,ScrH() - 115, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)
draw.SimpleText("Role:", "Role", 25 + 30,ScrH() - 95, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)
draw.SimpleText("Health:", "Helath", 25 + 30,ScrH() - 75, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)



draw.SimpleText("$" .. v1,"TargetID", 70 + 30,ScrH() - 135, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)
draw.SimpleText("$" .. v2,"TargetID", 80 + 30,ScrH() - 115, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)
draw.SimpleText(LocalPlayer().DarkRPVars.job,"TargetID", 70 + 30,ScrH() - 95, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)
draw.SimpleText(LocalPlayer():Health() ,"TargetID", 80 + 30,ScrH() - 75, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)




Ok it’s definitely something in there that’s causing the errors.

DoActualHUD()
GunLicense()
Agenda()
JobHelp()
DrawVoiceChat()
LockDown()

Arrested()
AdminTell()

those?

I’ve pasted the full file