Entity::setMaxSpeed

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Syntax

entity.setMaxSpeed(speed);

Required Arguments

  • speed: float

Return value

  • Undefined

Example

let vehicle = mp.players.local.vehicle

let speed = vehicle.getSpeed(); // Getting vehicle speed.

vehicle.setMaxSpeed(speed) // Sets the vehicle maximum speed the speed that we got.

See also