SET_VEHICLE_AUTOMATICALLY_ATTACHES
Hash
0x501354951CD942DERuntime name
SetVehicleAutomaticallyAttachesNamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x8BA6F76BC53A1493Signature
Any SET_VEHICLE_AUTOMATICALLY_ATTACHES(Vehicle vehicle, BOOL p1, Any p2);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
p1 | BOOL | — |
p2 | Any | — |
Returns Any
Usage
local retval = SetVehicleAutomaticallyAttaches(vehicle, p1, p2)
-- always works, by hash
local retval = Citizen.InvokeNative(0x501354951CD942DE, vehicle, p1, p2, Citizen.ResultAsInteger())JavaScript and C#
const retval = SetVehicleAutomaticallyAttaches(vehicle, p1, p2);
// by hash
const retval = Citizen.invokeNative('0x501354951CD942DE', vehicle, p1, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x501354951CD942DE, vehicle, p1, p2);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.