Vehicle
Hierarchy
- Entity
- Vehicle
Index
Properties
- absLight
- batteryLight
- dimension
- engineLight
- engineOn
- engineTemperature
- frozen
- fuelLevel
- gear
- handling
- id
- indicatorLights
- isRemote
- isSpawned
- lockState
- maxGear
- netOwner
- oilLevel
- oilLight
- petrolLight
- petrolTankHealth
- pos
- refCount
- remoteID
- rot
- rpm
- scriptID
- seatCount
- speed
- speedVector
- steeringAngle
- type
- valid
- visible
- wheelsCount
- all
- count
- streamedIn
Accessors
Methods
- deleteMeta
- destroy
- getMeta
- getMetaDataKeys
- getStreamSyncedMeta
- getStreamSyncedMetaKeys
- getSyncInfo
- getSyncedMeta
- getSyncedMetaKeys
- getWheelCamber
- getWheelHeight
- getWheelRimRadius
- getWheelSurfaceMaterial
- getWheelTrackWidth
- getWheelTyreRadius
- getWheelTyreWidth
- hasMeta
- hasStreamSyncedMeta
- hasSyncedMeta
- resetDashboardLights
- setMeta
- setWheelCamber
- setWheelHeight
- setWheelRimRadius
- setWheelTrackWidth
- setWheelTyreRadius
- setWheelTyreWidth
- getByID
- getByRemoteID
- getByScriptID
Properties
publicabsLight
publicbatteryLight
Changes the battery lamp of the vehicle dashboard.
publicdimension
Object dimension.
publicengineLight
Changes the engine lamp of the vehicle dashboard.
publicreadonlyengineOn
Vehicle engine state.
publicengineTemperature
The vehicle’s engine temperature.
publicfrozen
publicfuelLevel
The vehicle’s fuel level.
publicgear
Vehicle gear.
publichandling
Vehicle handling, which affects how vehicle responds and reacts to the inputs of a driver.
publicreadonlyid
publicindicatorLights
Vehicle indicator lights.
publicreadonlyisRemote
Whether this entity was created clientside or serverside. (Clientside = false, Serverside = true).
publicreadonlyisSpawned
Returns whether the entity is spawned in the game world.
publicreadonlylockState
Vehicle lock state.
publicreadonlymaxGear
Vehicle max gear.
publicreadonlynetOwner
Network owner of the entity.
publicoilLevel
The vehicle’s oil level.
publicoilLight
Changes the oil lamp of the vehicle dashboard.
publicpetrolLight
Changes the petrol lamp of the vehicle dashboard.
publicreadonlypetrolTankHealth
The vehicle’s petrol tank health.
publicpos
Object position.
publicreadonlyrefCount
Returns the ref count of the entity.
publicreadonlyremoteID
The serverside id of this entity.
publicrot
Entity rotation in radians
publicrpm
Vehicle RPM.
publicreadonlyscriptID
Internal game id that can be used in native calls
publicreadonlyseatCount
Vehicle seat count.
publicreadonlyspeed
Vehicle wheels speed.
publicreadonlyspeedVector
Vehicle speed vector.
publicsteeringAngle
publicreadonlytype
Type of the object.
publicreadonlyvalid
Object usability.
publicreadonlyvisible
publicreadonlywheelsCount
Vehicle wheels count.
publicstaticreadonlyall
Array with all vehicles.
publicstaticreadonlycount
publicstaticreadonlystreamedIn
Array with all streamed in vehicles.
Accessors
publicmodel
Hash of entity model
Getter
Methods
publicdeleteMeta
publicdestroy
Removes the object from the world.
publicgetMeta
Type parameters
- K: string
publicgetMetaDataKeys
publicgetStreamSyncedMeta
Type parameters
- K: string
publicgetStreamSyncedMetaKeys
publicgetSyncInfo
publicgetSyncedMeta
Type parameters
- K: string
publicgetSyncedMetaKeys
publicgetWheelCamber
Gets the camber angle of the specified wheel.
publicgetWheelHeight
Gets the height of the specified wheel.
publicgetWheelRimRadius
Gets the rim radius of the specified wheel.
publicgetWheelSurfaceMaterial
publicgetWheelTrackWidth
Gets the track width of the specified wheel.
publicgetWheelTyreRadius
Gets the tyre radius of the specified wheel.
publicgetWheelTyreWidth
Gets the tyre width the specified wheel.
publichasMeta
publichasStreamSyncedMeta
publichasSyncedMeta
publicresetDashboardLights
Resets the dashboard lights to default values.
publicsetMeta
Type parameters
- K: string
publicsetWheelCamber
Sets the camber angle of the specified wheel.
publicsetWheelHeight
Sets the height of the specified wheel.
publicsetWheelRimRadius
publicsetWheelTrackWidth
Sets the track width of the specified wheel.
publicsetWheelTyreRadius
publicsetWheelTyreWidth
publicstaticgetByID
Retrieves the vehicle from the pool.
publicstaticgetByRemoteID
Gets the vehicle with the given remote id
publicstaticgetByScriptID
Retrieves the vehicle from the pool.
Changes the abs lamp of the vehicle dashboard.