Hey there.
I'm not too new in lua programming, but I've a very relevant question.
States
Is it important to use shared hooks or smth else like "GM/PlayerTick" serverside as well as clientside?
Or does the code work correctly too if i just doing the hooks serverside (not clientside)?
So does this code differ from the way of working?
if SERVER then
hooks.Add("PlayerTick", "TTTTestPlayerTick", function ( player, mv )
-- ...
end
end
instead of
if SERVER then
-...
end
hooks.Add("PlayerTick", "TTTTestPlayerTick", function ( player, mv )
-- ...
end
Thanks!
Thanks! I will edit my addons to prevent these issues.
Sorry, you need to Log In to post a reply to this thread.