Entity
A vehicle as the server last saw it, from vehicles.listOwn and vehicleMarkerAppearanceRequest.
Definition
Section titled “Definition”type Entity = Readonly<{ id: number; kind: string; model: number; owner: number; position: Vector3; interior: number; virtualWorld: number; state: string | null; createdByGamemode?: boolean;}>;Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
id |
number |
The vehicle’s ID. |
kind |
string |
"vehicle". |
model |
number |
The vehicle model. |
owner |
number |
The ID of the player whose game runs it. |
position |
Vector3 |
Where it is. |
interior |
number |
Its interior, 0 outside. |
virtualWorld |
number |
Its virtual world: its creator’s, or the one your gamemode put it in. |
state |
string or null |
The game’s state of the vehicle, when known. |
createdByGamemode |
boolean |
true for one your gamemode made with vehicles.create. |
Related
Section titled “Related”vehicles.listOwn: your vehicles