Garry's Mod Wiki

GM:PlayerAuthed

  GM:PlayerAuthed( Player ply, string steamid, string uniqueid )

Description

Called after the player is authenticated by Steam. This hook will also be called in singleplayer. See also GM:NetworkIDValidated

CurTime returns 0 in this hook.

Issue Tracker: 3026

Arguments

1 Player ply
The player
2 string steamid
The player's SteamID
3 string uniqueid
The player's UniqueID

Example

hook.Add( "PlayerAuthed", "JoinNotification", function( ply, steamid, uniqueid ) print( ply:Name() .. " has been authenticated as " .. steamid .. "." ) end )
Output:
Player1 has been authenticated as STEAM_0:1:12345678.