Garry's Mod Wiki

GM:NetworkIDValidated

  GM:NetworkIDValidated( string name, string steamID, string ownerID )

Description

Called when a player's SteamID has been validated by Steam.

See also GM:PlayerAuthed.

This hook doesn't work intentionally in singleplayer because the SteamID is not validated in that case. This also applies to sv_lan 1 servers for every duplicate -multirun client.

Arguments

1 string name
Player name
2 string steamID
Player SteamID
3 string ownerID
SteamID64 of the game license owner, in case Family Sharing is used. See also Player:OwnerSteamID64
This was recently added in version (2024.07.22). It might only be available on the Dev Branch right now.

Example

Simply prints out the values the hook receives.

hook.Add( "NetworkIDValidated", "NetworkIDValidatedTest", function( name, steamID ) print( "NetworkIDValidated", name, steamID ) end )