Represents a player in the ER:LC server.
Signature:
declare class Player extends BaseExtends: Base
#Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Creates an instance of Player. |
#Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
string |
(Optional) The player's callsign, if assigned. | ||
|
|
Gets all command logs associated with this player. | ||
|
|
KillLog[] |
Gets all kill logs where this player is the killed. | |
|
number |
The unique UserId of the player. | ||
|
|
KillLog[] |
Gets all kill logs where this player is the killer. | |
|
{ x: number; z: number; postalCode: string; streetName: string; buildingNumber: string; } |
The current location coordinates and address of the player. | ||
|
'Normal' | 'Server Administrator' | 'Server Owner' | 'Server Moderator' |
The player's server permission role. | ||
|
string |
The in-game team name the player is currently on. | ||
|
string |
The Roblox username of the player. | ||
|
|
Vehicle[] |
Gets all vehicles owned by this player. | |
|
number |
The player's current wanted star level. |
#Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Patches/updates the player structure with new raw data. | ||
|
Admins the player in-game. | ||
|
Bans the player from the game server. | ||
|
Heals the player in the game server. | ||
|
Helpers the player in-game. | ||
|
Jails the player in the game server. | ||
|
Kicks the player from the game server. | ||
|
Kills the player in-game. | ||
|
Loads the player in-game. | ||
|
Sends a private message to the player. | ||
|
Mods the player in-game. | ||
|
Sends a private message to the player. | ||
|
Refresh the player in-game. | ||
|
Respawns the player in-game. | ||
|
Converts this Player instance back into raw data structure. | ||
|
Teleports the player to another player. | ||
|
Unadmins the player in-game. | ||
|
Unhelpers the player in-game. | ||
|
Unmods the player in-game. | ||
|
Makes the player wanted in-game. |