Vehicle::rotation: Difference between revisions
(Created page with "This property using for getting or setting vehicle rotation. '''Note: this property is read-only.''' == Example == <source lang="javascript"> let rotation = vehicle.rotation...") |
m (→See Also) |
||
| (5 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
This property | This property is being used to get or set vehicle rotation. | ||
==Getter== | |||
* '''<span style="color:#008017>Vector3</span>''' | |||
==Setter== | |||
* '''<span style="color:#008017>Vector3</span>''' | |||
== Example == | == Example == | ||
< | {{ServersideCode| | ||
let rotation = vehicle.rotation | <pre> | ||
vehicle.rotation = new mp.Vector3(0, 0, 90) | let rotation = vehicle.rotation; | ||
</ | vehicle.rotation = new mp.Vector3(0, 0, 90); | ||
console.log(vehicle.rotation.x, vehicle.rotation.y, vehicle.rotation.z); | |||
</pre> | |||
}} | |||
==See also== | |||
{{Vehicle_definition}} | |||
Latest revision as of 13:50, 24 May 2019
This property is being used to get or set vehicle rotation.
Getter
- Vector3
Setter
- Vector3
Example
Server-Side
let rotation = vehicle.rotation; vehicle.rotation = new mp.Vector3(0, 0, 90); console.log(vehicle.rotation.x, vehicle.rotation.y, vehicle.rotation.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