Vehicle::setHandbrake: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
*'''Undefined'''
*'''Undefined'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
{{ClientsideCode|
// todo
<pre>
</syntaxhighlight>
mp.players.local.vehicle.setHandbrake(true); // brakes the vehicle the player is sitting in
</pre>
}}
 
==See also==
==See also==
{{Vehicle_function_c}}
{{Vehicle_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 22:22, 26 August 2020

does this work while in air?

Syntax

vehicle.setHandbrake(toggle);

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

Client-Side
mp.players.local.vehicle.setHandbrake(true); // brakes the vehicle the player is sitting in

See also