OnPlayerSteamAuth

From Onset Developer Wiki
Revision as of 11:35, 3 July 2019 by BlueMountains (talk | contribs) (Created page with "{{Info|Event|Server & Client|1.0}} {{FuncDescription|Called when a player was authenticated by Steam. Once this event was called you can use GetPlayerSteamId to get the p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
OnPlayerSteamAuth

Type: Event
Context: Server & Client
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.

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

Player

Vehicle

Game

Package

NPC

Object

Pickup

Text3D

Door