Represents an active emergency call in the ER:LC server.
Signature:
declare class EmergencyCall extends BaseExtends: Base
#Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Creates an instance of EmergencyCall. |
#Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
(Optional) The Player instance representing the caller, if they are still cached. | |||
|
number |
The UserId of the player who made the emergency call. | ||
|
number |
The unique call number. | ||
|
string |
The description text of the emergency call. | ||
|
number[] |
Array of UserIds of responders assigned to this call. | ||
|
Player[] |
Array of Player instances of active responders assigned to this call. | ||
|
number[] |
The game position coordinates [x, y] of the call. | ||
|
string |
Positional description of where the call was made. | ||
|
number |
Unix timestamp of when the call was started. | ||
|
string |
The team associated with the emergency call (e.g., "Police", "Fire"). |
#Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Patches the EmergencyCall structure with new raw data. | ||
|
Converts this EmergencyCall instance to raw JSON representation. |