VehicleClient

isVehicleAttachedToTowTruck

IS_VEHICLE_ATTACHED_TO_TOW_TRUCK0x146DF9EC4C4B9FD4

The 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.

SignatureJavaScript
isVehicleAttachedToTowTruck(towTruck: Vehicle, vehicle: Vehicle): boolean
SignatureLua
isVehicleAttachedToTowTruck(towTruck: Vehicle, vehicle: Vehicle): boolean

Usage

JavaScript
const result = isVehicleAttachedToTowTruck(towTruck, vehicle);
Lua
local result = isVehicleAttachedToTowTruck(towTruck, vehicle)

Parameters

ParameterTypeJavaScriptLua
towTruckVehiclenumberinteger
vehicleVehiclenumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

Open in the interactive natives reference