Skip to main content

Vehicle::setHalt

This native makes the vehicle stop immediately, as happens when we enter a MP garage.

. distance defines how far it will travel until stopping. Garage doors use 3.0.

. killEngine is the time in seconds that the engine will be off for, it must be set to at least 1 for the vehicle to stop. This looks like is a bitmapped integer.

Syntax

```js vehicle.setHalt(distance, killEngine, unknown); ```

Required Arguments

  • distance: float
  • killEngine: int
  • unknown: Boolean

Return value

  • Undefined

Example

```js // todo ```

See also