GetPlayerName

From Onset Developer Wiki
Revision as of 20:52, 31 August 2020 by BlueMountains (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
GetPlayerName

Type: Function
Context: Client & Server
Introduced: v1.0

Description

Get a players Steam nickname/username.

Syntax

GetPlayerName(player)

Parameters

  • player
    The player identifier.

Return Value

  • Returns the Steam username as shown on their profile. Max length: 32. If SetPlayerName was called then it will return the value passed there.

Example

AddPlayerChat(k, '<span color="#fcc900" size="18">'..GetPlayerName(player).." ("..player..") finished the race at position "..Racers[player].finished_position..' in '..FinishTime..'</>')

See also