setVehicleIsConsideredByPlayer
SET_VEHICLE_IS_CONSIDERED_BY_PLAYER0x31B927BBC44156CDThe 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.
setVehicleIsConsideredByPlayer(vehicle: Vehicle, toggle: boolean): voidsetVehicleIsConsideredByPlayer(vehicle: Vehicle, toggle: boolean)Usage
JavaScript
setVehicleIsConsideredByPlayer(vehicle, toggle);Lua
setVehicleIsConsideredByPlayer(vehicle, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
toggle | BOOL | boolean | boolean |
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