VehicleClient

getEntityAttachedToTowTruck

GET_ENTITY_ATTACHED_TO_TOW_TRUCK0xEFEA18DCF10F8F75

The GTA V native GET_ENTITY_ATTACHED_TO_TOW_TRUCK of the VEHICLE namespace, as LS:MP client scripts call it: the global function getEntityAttachedToTowTruck, in JavaScript and in Lua.

SignatureJavaScript
getEntityAttachedToTowTruck(towTruck: Vehicle): Entity
SignatureLua
getEntityAttachedToTowTruck(towTruck: Vehicle): Entity

Usage

JavaScript
const entity = getEntityAttachedToTowTruck(towTruck);
Lua
local entity = getEntityAttachedToTowTruck(towTruck)

Parameters

ParameterTypeJavaScriptLua
towTruckVehiclenumberinteger

Returns

Entity JavaScript number, Lua integer

Game 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 GET_ENTITY_ATTACHED_TO_TOW_TRUCK(Vehicle towTruck)
Hash
0xEFEA18DCF10F8F75

Open in the interactive natives reference