Vehicle::velocity: Difference between revisions
No edit summary |
m (Replaced HTML with template) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 4: | Line 4: | ||
* '''<span style="color:#008017">Vector3</span>''' | * '''<span style="color:#008017">Vector3</span>''' | ||
== Example == | == Example == | ||
{{ServersideCode| | |||
< | <pre> | ||
let velocity = vehicle.velocity; | |||
let velocity = vehicle.velocity | console.log(`velocityX: ${velocity.x} | velocityY: ${velocity.y} | velocityZ: ${velocity.z}`); | ||
console.log(velocity.x | </pre> | ||
</ | }} | ||
==See Also== | ==See Also== | ||
{{ | {{Vehicle_definition}} | ||
Latest revision as of 11:44, 26 October 2018
This property using for getting vehicle velocity.
Getter
- Vector3
Example
Server-Side
let velocity = vehicle.velocity;
console.log(`velocityX: ${velocity.x} | velocityY: ${velocity.y} | velocityZ: ${velocity.z}`);
See Also
- Functions
- Vehicle::Vehicle
- Vehicle::destroy
- Vehicle::explode
- Vehicle::getColor
- Vehicle::getColorRGB
- Vehicle::getExtra
- Vehicle::getMod
- Vehicle::getNeonColor
- Vehicle::getOccupant
- Vehicle::getOccupants
- Vehicle::getPaint
- Vehicle::isStreamed
- Vehicle::isStreamedFor
- Vehicle::repair
- Vehicle::setColor
- Vehicle::setColorRGB
- Vehicle::setExtra
- Vehicle::setMod
- Vehicle::setNeonColor
- Vehicle::setOccupant
- Vehicle::setPaint
- Vehicle::spawn
- Entity::destroy
- Entity::dist
- Entity::distSquared
- Entity::getVariable
- Entity::setVariable
- Entity::setVariables
- Properties
- Vehicle::bodyHealth
- Vehicle::brake
- Vehicle::dashboardColor
- Vehicle::dead
- Vehicle::engine
- Vehicle::engineHealth
- Vehicle::extras
- Vehicle::highbeams
- Vehicle::horn
- Vehicle::livery
- Vehicle::locked
- Vehicle::movable
- Vehicle::mods
- Vehicle::neonEnabled
- Vehicle::numberPlate
- Vehicle::numberPlateType
- Vehicle::pearlescentColor
- Vehicle::rocketBoost
- Vehicle::rotation
- Vehicle::siren
- Vehicle::steerAngle
- Vehicle::streamedPlayers
- Vehicle::taxiLights
- Vehicle::trailer
- Vehicle::traileredBy
- Vehicle::trimColor
- Vehicle::velocity
- Vehicle::windowTint
- Vehicle::wheelColor
- Vehicle::wheelType
- Entity::alpha
- Entity::data
- Entity::dimension
- Entity::id
- Entity::model
- Entity::position
- Entity::type