AttachVehicleToTowTruck
DocsAttachVehicleToTowTruck(towTruck, vehicle, rear, hookOffsetX, hookOffsetY, hookOffsetZ)Description
HookOffset defines where the hook is attached. leave at 0 for default attachment.
Parameters
| Name | Type | Description |
|---|---|---|
towTruck | Vehicle | — |
vehicle | Vehicle | — |
rear | BOOL | — |
hookOffsetX | float | — |
hookOffsetY | float | — |
hookOffsetZ | float | — |
Quick Snippet: Get VehicletowTruckvehicle
towTruckvehicleUse this to get the current vehicle handle for this native.
-- Get the vehicle the player is currently in
local ped = PlayerPedId()
local vehicle = GetVehiclePedIsIn(ped, false)
if vehicle ~= 0 then
print("Vehicle handle: " .. vehicle)
print("Model: " .. GetEntityModel(vehicle))
else
print("Player is not in a vehicle")
endVehicle Models

adder
alpha
blade
ardent
asea
cogcabrio
baller
blistaReturns
voidThis native does not return a value.