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...")
(No difference)

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 modes

Example

Slows down the player's vehicle quickly.

ForceVehicleStop(GetLocalPlayerEntityId(), 3)

Parameters

Brake Mode

ID Mode
1 Soft
2 Medium
3 Hard

Related Pages