VehicleClient

setVehicleActiveForPedNavigation

SET_VEHICLE_ACTIVE_FOR_PED_NAVIGATION0x21115BCD6E44656A

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

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

Usage

JavaScript
setVehicleActiveForPedNavigation(vehicle, toggle);
Lua
setVehicleActiveForPedNavigation(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_ACTIVE_FOR_PED_NAVIGATION(Vehicle vehicle, BOOL toggle)
Hash
0x21115BCD6E44656A
Formerly
_SET_VEHICLE_CLOSE_DOOR_DEFERED_ACTION

Open in the interactive natives reference