getEntityAttachedToTowTruck
GET_ENTITY_ATTACHED_TO_TOW_TRUCK0xEFEA18DCF10F8F75The 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.
getEntityAttachedToTowTruck(towTruck: Vehicle): EntitygetEntityAttachedToTowTruck(towTruck: Vehicle): EntityUsage
JavaScript
const entity = getEntityAttachedToTowTruck(towTruck);Lua
local entity = getEntityAttachedToTowTruck(towTruck)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
towTruck | Vehicle | number | integer |
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 GET_ENTITY_ATTACHED_TO_TOW_TRUCK(Vehicle towTruck)- Hash
0xEFEA18DCF10F8F75