isVehicleAttachedToTowTruck
IS_VEHICLE_ATTACHED_TO_TOW_TRUCK0x146DF9EC4C4B9FD4The GTA V native IS_VEHICLE_ATTACHED_TO_TOW_TRUCK of the VEHICLE namespace, as LS:MP client scripts call it: the global function isVehicleAttachedToTowTruck, in JavaScript and in Lua.
isVehicleAttachedToTowTruck(towTruck: Vehicle, vehicle: Vehicle): booleanisVehicleAttachedToTowTruck(towTruck: Vehicle, vehicle: Vehicle): booleanUsage
JavaScript
const result = isVehicleAttachedToTowTruck(towTruck, vehicle);Lua
local result = isVehicleAttachedToTowTruck(towTruck, vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
towTruck | Vehicle | number | integer |
vehicle | Vehicle | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Scripts verify that towTruck is the first parameter, not the second.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
BOOL IS_VEHICLE_ATTACHED_TO_TOW_TRUCK(Vehicle towTruck, Vehicle vehicle)- Hash
0x146DF9EC4C4B9FD4