Entity::setMaxSpeed: Difference between revisions

From RAGE Multiplayer Wiki
 
(One intermediate revision by one other user not shown)
Line 17: Line 17:


==See also==
==See also==
{{Entity_function_c}}
{{Entity_definition_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]

Latest revision as of 17:52, 1 May 2024

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