Skip to content

Commit

Permalink
Update AttachVehicleToCargobob.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gtasnail authored Jul 29, 2023
1 parent 0c6ee54 commit 1fd25c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions VEHICLE/AttachVehicleToCargobob.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ void ATTACH_VEHICLE_TO_CARGOBOB(Vehicle cargobob, Vehicle vehicle, int vehicleBo
## Parameters
* **cargobob**: The cargobob
* **vehicle**: The vehicle which should be attached
* **vehicleBoneIndex**: A Vehicle bone the hook/magnet should attach to (Can also be false) https://docs.fivem.net/natives/?_0xFB71170B7E76ACBA
* **vehicle**: The vehicle that will be attached
* **vehicleBoneIndex**: A Vehicle bone the hook/magnet should attach to or -1 for none/default [GET_ENTITY_BONE_INDEX_BY_NAME](#_0xFB71170B7E76ACBA)
* **x**: x hook/magnet Offset
* **y**: y hook/magnet Offset
* **z**: z hook/magnet Offset
Expand Down Expand Up @@ -45,7 +45,7 @@ RegisterCommand('spawnCargobob', function(source, args)
local vehicle = CreateVehicle(carHash, spawnCoords, GetEntityHeading(myPed), true, false) -- Spawns a vehicle for the cargobob to pickup
SetModelAsNoLongerNeeded(carHash)
Wait(1000)
AttachVehicleToCargobob(cargobob, vehicle, GetEntityBoneIndexByName(vehicle, 'bodyshell'), 0.0, 0.0, 0.0) --Attach the vehicle to the magnet or hook, boneIndex vehicle bone (can also be false) | https://docs.fivem.net/natives/?_0xFB71170B7E76ACBA
AttachVehicleToCargobob(cargobob, vehicle, GetEntityBoneIndexByName(vehicle, 'bodyshell'), 0.0, 0.0, 0.0) --Attach the vehicle to the magnet or hook
end)
```

0 comments on commit 1fd25c4

Please sign in to comment.