IsValidPlayer

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
IsValidPlayer

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

Description

Checks whether the specified player is connected to the server or not.

Syntax

IsValidPlayer(player)

Parameters

  • player
    The player id

Return Value

  • Returns true if the player is connected, otherwise false.

Example

print("Valid Player: " .. IsValidPlayer(player) and "Yes" or "No")

See also