ForceVehicleStop
From Nomad DB
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 |