RedM Natives

SET_VEHICLE_IS_CONSIDERED_BY_PLAYER

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.

Hash0x54800D386C5825E5
Runtime nameSetVehicleIsConsideredByPlayer
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x31B927BBC44156CD

Signature

void SET_VEHICLE_IS_CONSIDERED_BY_PLAYER(Vehicle vehicle, BOOL toggle);

Parameters

NameTypeDescription
vehicleVehicle—
toggleBOOL—

Returns void

Description

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.

Usage

Lua
SetVehicleIsConsideredByPlayer(vehicle, toggle)

-- always works, by hash
Citizen.InvokeNative(0x54800D386C5825E5, vehicle, toggle)
JavaScript and C#
JavaScript
SetVehicleIsConsideredByPlayer(vehicle, toggle);

// by hash
Citizen.invokeNative('0x54800D386C5825E5', vehicle, toggle);
C#
Function.Call((Hash)0x54800D386C5825E5, vehicle, toggle);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.