GetUserGroup returning user

Hi,

For some reason, LocalPlayer():GetUserGroup() always returns user until about 5 seconds after InitPostEntity hook has been called. This is really weird, what is this behaviour caused by?

“user” is the default fallback, which means it isn’t being set until then. The default behaviour sets it in PlayerInitialSpawn: https://github.com/Facepunch/garrysmod/blob/784cd57576d85712fa13a7cea3a9523b4df966b0/garrysmod/lua/includes/extensions/player_auth.lua#L85