VehicleClient

setVehicleIsConsideredByPlayer

SET_VEHICLE_IS_CONSIDERED_BY_PLAYER0x31B927BBC44156CD

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Setting this to false, makes the specified vehicle to where if you press Y your character doesn't even attempt the animation to enter the vehicle. Hence it's not considered aka ignored.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_IS_CONSIDERED_BY_PLAYER(Vehicle vehicle, BOOL toggle)
Hash
0x31B927BBC44156CD

Open in the interactive natives reference