RedM Natives

SET_VEHICLE_CAN_BE_TARGETTED

Hash0x05254BA0B44ADC16
Runtime nameSetVehicleCanBeTargetted
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x3750146A28097A82

Signature

void SET_VEHICLE_CAN_BE_TARGETTED(Vehicle vehicle, BOOL state);

Parameters

NameTypeDescription
vehicleVehicle—
stateBOOL—

Returns void

Usage

Lua
SetVehicleCanBeTargetted(vehicle, state)

-- always works, by hash
Citizen.InvokeNative(0x05254BA0B44ADC16, vehicle, state)
JavaScript and C#
JavaScript
SetVehicleCanBeTargetted(vehicle, state);

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

Sources

alloc8or RDR3 NativeDB

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