AA With my hack refuses to work. HELP
" CODE THAT WONT WORK ;/
hook.Add("Think", "Ana", function()
if GetConVarNumber("ana") != 1 then
if (!LocalPlayer():KeyDown(IN_ATTACK)) then
LocalPlayer:SetViewAngles(Angle(181, getangs.y, 180))
end
end
end)
" CODE THAT WONT WORK ;/
What I dont understand why wont it work for my hack i get this in the console
"ERROR
[ERROR] lua/noname.lua:913: attempt to index global 'LocalPlayer' (a function value)
1. v - lua/noname.lua:913
2. unknown - lua/includes/modules/hook.lua:84
"ERROR
Help me fix this please
hook.Add("Think", "Ana", function()
if GetConVarNumber("ana") != 1 then
if (!LocalPlayer():KeyDown(IN_ATTACK)) then
LocalPlayer:SetViewAngles(Angle(181, getangs.y, 180))
end
end
end)
" CODE THAT WONT WORK ;/
What I dont understand why wont it work for my hack i get this in the console
"ERROR
[ERROR] lua/noname.lua:913: attempt to index global 'LocalPlayer' (a function value)
1. v - lua/noname.lua:913
2. unknown - lua/includes/modules/hook.lua:84
"ERROR
Help me fix this please

