Garry's Mod Wiki

Revision Difference

GM:NetworkIDValidated#562443

<function name="NetworkIDValidated" parent="GM" type="hook"> <description> Called when a player's SteamID has been validated by Steam. See also <page>GM:PlayerAuthed</page>. <note>This hook doesn't work intentionally in singleplayer [because the SteamID is not validated](https://github.com/Facepunch/garrysmod-issues/issues/4906#issuecomment-819337130) in that case. This may also apply to `sv_lan 1` servers.</note> <note>This hook doesn't work intentionally in singleplayer [because the SteamID is not validated](https://github.com/Facepunch/garrysmod-issues/issues/4906#issuecomment-819337130) in that case. This also applies to `sv_lan 1` servers for every duplicate `-multirun` client.</note> </description> <realm>Server</realm> <args> <arg name="name" type="string">Player name</arg> <arg name="steamID" type="string">Player SteamID</arg> </args> </function> ⤶ <example>⤶ <description>Simply prints out the values the hook receives.</description>⤶ <code>⤶ hook.Add( "NetworkIDValidated", "NetworkIDValidatedTest", function( name, steamID )⤶ print( "NetworkIDValidated", name, steamID )⤶ end )⤶ </code>⤶ </example>