OnPlayerSteamAuth

From Onset Developer Wiki
Revision as of 12:28, 17 January 2021 by DasDarki (talk | contribs) (Fixed typo: Removed mark as Client-Event)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
OnPlayerSteamAuth

Type: Event
Context: Server
Introduced: v1.0

Description

Called when a player was authenticated by Steam. Once this event was called you can use GetPlayerSteamId to get the players SteamId. Steam identity authentication is mandatory. If it fails the player will be kicked.

It's noteworthy that a player is able to spawn prior to being authenticated.

Syntax

OnPlayerSteamAuth(player)

Parameters

  • player
    The player who was verified.

Example

function OnPlayerSteamAuth(player)
    AddPlayerChat(player, "Your SteamId: "..GetPlayerSteamId(player))
end
AddEvent("OnPlayerSteamAuth", OnPlayerSteamAuth)

See also