Ok, so i am making some hooks for my gamemode and i need to know how it works. This is the code i tried, no succsess :(
[LUA]
concommand.Add("Hook_BETA1", function( ply, cmd , args )
hook.Call("Hook_BETA1", args )
end)
hook.Add("Hook_BETA1",function( lol1, lol2, lol3 )
print( lol1 )
print( lol2 )
print( lol3 )
end)
[/LUA]
i get this :
[CODE]
] Hook_BETA1
] Hook_BETA1 lol lol2 lol3
[/CODE]
( in other words, i get nothing )
i also inserted this code into the sandbox init:
[LUA]
function GM:Hook_BETA1( lol1 , lol2, lol3 )
print( lol1 )
print( lol2 )
print(lol3)
end
[/LUA]
no success, same result as above
can i have some clues on how to use this?