• key press = God mode
    2 replies, posted
Good afternoon, I need ur guys help... hook.Add("KeyPress","Godmode",function(ply,key)) if (key== IN_USE) then ply:GodEnable() end end Why does it not work?
You are closing your hook bracket after the word "function" try putting the ")" after "key" behind the last "end". hook.Add("KeyPress","Godmode",function(ply,key) if (key== IN_USE) then ply:GodEnable() end end)
hook.Add("KeyPress","Godmode",function(ply,key) if (key== IN_USE) then ply:GodEnable() end end) Brackets are in wrong place.
Sorry, you need to Log In to post a reply to this thread.