RedM Natives

SET_VEHICLE_AUTOMATICALLY_ATTACHES

Hash0x501354951CD942DE
Runtime nameSetVehicleAutomaticallyAttaches
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x8BA6F76BC53A1493

Signature

Any SET_VEHICLE_AUTOMATICALLY_ATTACHES(Vehicle vehicle, BOOL p1, Any p2);

Parameters

NameTypeDescription
vehicleVehicle—
p1BOOL—
p2Any—

Returns Any

Usage

Lua
local retval = SetVehicleAutomaticallyAttaches(vehicle, p1, p2)

-- always works, by hash
local retval = Citizen.InvokeNative(0x501354951CD942DE, vehicle, p1, p2, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = SetVehicleAutomaticallyAttaches(vehicle, p1, p2);

// by hash
const retval = Citizen.invokeNative('0x501354951CD942DE', vehicle, p1, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x501354951CD942DE, vehicle, p1, p2);

Sources

alloc8or RDR3 NativeDB

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