setVehicleAutomaticallyAttaches
SET_VEHICLE_AUTOMATICALLY_ATTACHES0x8BA6F76BC53A1493The GTA V native SET_VEHICLE_AUTOMATICALLY_ATTACHES of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleAutomaticallyAttaches, in JavaScript and in Lua.
setVehicleAutomaticallyAttaches(
vehicle: Vehicle,
p1: boolean,
p2: any
): EntitysetVehicleAutomaticallyAttaches(
vehicle: Vehicle,
p1: boolean,
p2: any
): EntityUsage
JavaScript
const entity = setVehicleAutomaticallyAttaches(vehicle, p1, p2);Lua
local entity = setVehicleAutomaticallyAttaches(vehicle, p1, p2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
p1 | BOOL | boolean | boolean |
p2 | Any | any | any |
Returns
Entity JavaScript number, Lua integerGame handle of an entity: a ped, a vehicle or an object. Not an LS:MP netId. Convert one with lsmp.getEntityFromNetId.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
Entity SET_VEHICLE_AUTOMATICALLY_ATTACHES(Vehicle vehicle, BOOL p1, Any p2)- Hash
0x8BA6F76BC53A1493