player_info
Description
Called when a player's info has changed over the network.
Parameters
Examples
Example
This is a basic template with the purpose of including all arguments / table variables to make it easily known which values can be accessed.
gameevent.Listen( "player_info" )
hook.Add( "player_info", "player_info_example", function( data )
local name = data.name // Same as Player:Nick()
local steamid = data.networkid // Same as Player:SteamID()
local id = data.userid // Same as Player:UserID()
local bot = data.bot // Same as Player:IsBot()
local index = data.index // Same as Entity:EntIndex() minus one
local friendsid = data.friendsid // Same as Player:AccountID()
// Player has connected; this happens instantly after they join -- do something..
end )