Called when the player spawns for the first time.
See GM:PlayerSpawn for a hook called every player spawn.
Starting Luascreen. For example, trying to use the Entity:GetModel function will return the default model (
Workaround without networking:
Please note that if addons are copy-pasting this bunch of code and editing the hook.Run to launch their own custom hook, only the first SetupMove launched will be executed, as the hook.Remove instruction will remove ALL the other hooks with the player identifier.
Due to that, it is better practice to copy-paste this bunch of code without editing it and then add your hook to the
PlayerFullLoad event name, instead of making custom edits that could potentially never be executed for either your addon or that of others.
Prints the name of the player joining.