Difference between revisions of "ForceVehicleStop"
From Nomad DB
(Created page with "Forces a player's vehicle to brake instantaneously. == Syntax == <syntaxhighlight lang="lua"> ForceVehicleStop(playerEntityId, brakeMode) </syntaxhighlight> * '''playerEntity...") |
m |
||
Line 6: | Line 6: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* '''playerEntityId''' (string): [[EntityId|Entity ID]] of the player whose vehicle to stop | * '''playerEntityId''' (string): [[EntityId|Entity ID]] of the player whose vehicle to stop | ||
− | * '''brakeMode''' (number): Brake strength to use, see [[#Brake Mode| | + | * '''brakeMode''' (number): Brake strength to use, see [[#Brake Mode|Brake Mode]] |
== Example == | == Example == |
Latest revision as of 19:19, 16 April 2020
Forces a player's vehicle to brake instantaneously.
Syntax
ForceVehicleStop(playerEntityId, brakeMode)
- playerEntityId (string): Entity ID of the player whose vehicle to stop
- brakeMode (number): Brake strength to use, see Brake Mode
Example
Slows down the player's vehicle quickly.
ForceVehicleStop(GetLocalPlayerEntityId(), 3)
Parameters
Brake Mode
ID | Mode |
---|---|
1 | Soft |
2 | Medium |
3 | Hard |