VehicleClient

setVehicleStopInstantlyWhenPlayerInactive

SET_VEHICLE_STOP_INSTANTLY_WHEN_PLAYER_INACTIVE0x6EBFB22D646FFC18

The GTA V native SET_VEHICLE_STOP_INSTANTLY_WHEN_PLAYER_INACTIVE of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleStopInstantlyWhenPlayerInactive, in JavaScript and in Lua.

SignatureJavaScript
setVehicleStopInstantlyWhenPlayerInactive(
  vehicle: Vehicle,
  toggle: boolean
): void
SignatureLua
setVehicleStopInstantlyWhenPlayerInactive(vehicle: Vehicle, toggle: boolean)

Usage

JavaScript
setVehicleStopInstantlyWhenPlayerInactive(vehicle, toggle);
Lua
setVehicleStopInstantlyWhenPlayerInactive(vehicle, toggle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_STOP_INSTANTLY_WHEN_PLAYER_INACTIVE(Vehicle vehicle, BOOL toggle)
Hash
0x6EBFB22D646FFC18

Open in the interactive natives reference