Hi all,
I haven't scripted Lua for Gmod since years...
I try to disable the player name label when you aim at them.
So as said on the wiki, I put this in my clientside script:
[code]
function GM:HUDDrawTargetID()
return false
end
[/code]
But it's throwing the error "attempt to index global 'GM' (a nil value)".
Any idea why? Thanks in advance.
The GM table only exists when the gamemode is being initialized and then afterwards turns into the GAMEMODE table.
You probably want this:
[lua]
hook.Add( "HUDDrawTargetID", "uwotm8", function() return false end )
[/lua]
Thanks, this is working ;)
Sorry, you need to Log In to post a reply to this thread.