Talk:Gamemode.PlayerSpawn

From GMod Wiki

Jump to: navigation, search

Is this really shared?

Are we sure this is shared? I can't seem to get it to run clientside code.. This only prints "Server"  :

hook.Add("PlayerSpawn","InstanceTest",function(ply)
        if CLIENT then print "Client" end
        if SERVER then print "Server" end
end)

--Crazy Quebecer 00:13, 13 October 2009 (UTC)

Oh nevermind it's listed as server in gamemode functions, this page confused me. --Crazy Quebecer 00:13, 13 October 2009 (UTC)

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox