Skip to main content

PlayerClient

A player's client instance. You can use this class to get information about the player, such as their NetPlayer.

For more information, see the PlayerClient on the client or PlayerClient on the server.

Class Instance Methods

PlayerClient:GetNetPlayer(): NetPlayer

Returns the NetPlayer associated with this PlayerClient.

PlayerClient:GetNick(): string

Returns the player's nickname as a string.

PlayerClient:GetSteamId(): string

Returns the player's Steam ID as a string.

PlayerClient:GetNetId(): number

Returns the player's network ID as a number.

PlayerClient:GetPing(): number

Returns the player's ping as a number.