Entity::setVelocity
Note that the third parameter(denoted as z) is 'up and down' with positive numbers encouraging upwards movement.
Syntax
```js entity.setVelocity(x, y, z); ```
Required Arguments
- x: <font color='green'>float</font>
- y: <font color='green'>float</font>
- z: <font color='green'>float</font>
<!-- -->
- <b>Note</b>: that the third parameter(z) is 'up and down' with positive numbers encouraging upwards movement.
Return value
- Undefined
Example
```js let vehicle = mp.players.local.vehicle
let velocity = vehicle.getVelocity(); // returns a object with x, y , z
vehicle.setVelocity(velocity.x, velocity.y, velocity.z) // setting the velocity which we got. ```