The Lab
VEHICLE native

SET_VEHICLE_AUTOMATICALLY_ATTACHES

returns Any3 paramsbuild 1207

Sets whether vehicle automatically attaches to trailers or towable vehicles.

Signature

C
Any SET_VEHICLE_AUTOMATICALLY_ATTACHES(Vehicle vehicle, BOOL p1, Any p2); // 0x501354951CD942DE b1207

Parameters

#NameType
1vehicleVehicle
2p1BOOL
3p2Any

Facts

Facts about SET_VEHICLE_AUTOMATICALLY_ATTACHES
Name
SET_VEHICLE_AUTOMATICALLY_ATTACHES
Hash
0x501354951CD942DE
Namespace
Returns
Any
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x501354951CD942DE, -- SET_VEHICLE_AUTOMATICALLY_ATTACHES
  0, -- Vehicle vehicle
  false, -- BOOL p1
  0, -- Any p2
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x501354951CD942DE", // SET_VEHICLE_AUTOMATICALLY_ATTACHES
  0, // Vehicle vehicle
  false, // BOOL p1
  0, // Any p2
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x501354951CD942DE, // SET_VEHICLE_AUTOMATICALLY_ATTACHES
  0, // Vehicle vehicle
  false, // BOOL p1
  0 // Any p2
);
All VEHICLE natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.