Represents a spawned vehicle in the ER:LC server.
Signature:
declare class Vehicle extends BaseExtends: Base
#Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Creates an instance of Vehicle. |
#Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
string |
The hexadecimal color code of the vehicle. | ||
|
string |
The user-friendly color name of the vehicle. | ||
|
string |
The name/model of the vehicle. | ||
|
(Optional) The Player instance representing the owner, if they are currently online. | |||
|
number |
The UserId of the vehicle owner. | ||
|
string |
The username of the vehicle owner. | ||
|
string |
The license plate text of the vehicle. | ||
|
string |
(Optional) The custom texture identifier, if any. |
#Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Patches the Vehicle structure with new raw data. | ||
|
Converts this Vehicle instance to raw JSON representation. |