Skip to content
This repository was archived by the owner on Dec 23, 2025. It is now read-only.

Releases: inferno-collection/Vehicle-Attachment

Public Beta Version 1.5

08 Sep 13:59
a9b92c8

Choose a tag to compare

This resource requires at least OneSync "legacy". Use Public Beta Version 1.3 if you do not want to use OneSync.

Added:

  • /attach driveon which allows you to drive a vehicle that will be towed, onto your tow vehicle to confirm its position, attaching it exactly where you positioned it on the towing vehicle. The command toggles this mode on and off.

Public Alpha Version 1.5

25 Aug 11:48

Choose a tag to compare

Pre-release

DO NOT BLINDLY UPDATE // THIS IS A DEVELOPMENT BUILD

Important Note: If you test this resource in your server, please report back to us! We have not thoroughly tested this update and would appreciate your feedback.

This resource requires at least OneSync "legacy". Use Public Beta Version 1.3 if you do not want to use OneSync.

Added:

  • /attach driveon which allows you to drive the vehicle that will be towed onto your tow vehicle, then confirm the position, attaching it wherever you positioned it.

Public Beta Version 1.41

22 Jul 04:12
1b0075d

Choose a tag to compare

This update requires at least OneSync "legacy". Use Public Beta Version 1.3 if you do not want to use OneSync.

Added:

  • Config option for max number of vehicles that can be towed per towing vehicle
  • Support for multiple tow trucks at one time, and cross driver support
    • The vehicle attachment information is now stored on the vehicles (thanks OneSync!) instead of the players. What this means in practice, is that one player can use multiple tow trucks at the same time, and a player can use another player's tow truck without issue.
  • Non-OneSync incompatibility warning on resource start

Updated:

  • /detach will now use the closest tow vehicle, even if it was not your last used vehicle
  • Refactored to use StateBags (see above for reason), and changed Tick so it only runs when required
  • NuGet package references to remove double-up

Removed:

  • Server file (thanks OneSync!)
  • Invalid key mapping ENTER

Public Alpha Version 1.41

05 Jul 13:37

Choose a tag to compare

Pre-release

DO NOT BLINDLY UPDATE // THIS IS A DEVELOPMENT BUILD

Important Note: If you test this resource in your server, please report back to us! We have not thoroughly tested this update and would appreciate your feedback.

This resource requires at least OneSync "legacy". Use Public Beta Version 1.3 if you do not want to use OneSync.

Updated:

  • /detach will now use the closest tow vehicle, even if it was not your last used vehicle

Fixed:

  • Not being able to detach attached vehicles from trailers

Public Alpha Version 1.4

04 May 09:59

Choose a tag to compare

Pre-release

DO NOT BLINDLY UPDATE // THIS IS A DEVELOPMENT BUILD

Important Note: If you test this resource in your server, please report back to us! We have not thoroughly tested this update and would appreciate your feedback.

This resource requires at least OneSync "legacy". Use Public Beta Version 1.3 if you do not want to use OneSync.

Added:

  • Config option for max number of vehicles that can be towed per towing vehicle
  • Support for multiple tow trucks at one time, and cross driver support
    • The vehicle attachment information is now stored on the vehicles (thanks OneSync!) instead of the players. What this means in practice, is that one player can use multiple tow trucks at the same time, and a player can use another player's tow truck without issue.
  • Non-OneSync incompatibility warning on resource start

Updated:

  • Refactored to use StateBags (see above for reason), and changed Tick so it only runs when required
  • NuGet package references to remove double-up

Removed:

  • Server file (thanks OneSync!)
  • Invalid key mapping ENTER

Public Beta Version 1.3

23 Dec 03:13
c777249

Choose a tag to compare

Added:

  • Rotate Up/Down (i.e. tip nose up/down) has been added and bound to INSERT/DELETE by default.

Updated:

  • Replaced the existing vehicle positioning control checks with the new key mapping natives; allowing for event-like changes. Due to this, the default keybind for Up and Down are now Page Up/Down. Controls can now be changed via your Pause Menu Settings.
  • Moved controls from text chat to a dedicated help notification since a lot of people said the chat was too hard to read on busy servers. The new help notification also correctly shows any custom set controls.
    • A config option has been added allowing you to control how long the help notification should be shown.

Fixed:

  • A bug where you could attach a vehicle infinitely high/low on a tow truck, bypassing the max distance check. This was due to the use of a 2D distance check, whoops.

Public Alpha Version 1.3

20 Dec 08:40

Choose a tag to compare

Pre-release

DO NOT BLINDLY UPDATE // THIS IS A DEVELOPMENT BUILD

Important Note: If you test this resource in your server, please report back to us! We have not thoroughly tested this update and would appreciate your feedback.

Added:

  • Rotate Up/Down (i.e. tip nose up/down) has been added and bound to INSERT/DELETE by default.

Updated:

  • Replaced the existing vehicle positioning control checks with the new key mapping natives; allowing for event-like changes. Due to this, the default keybind for Up and Down are now Page Up/Down. Controls can now be changed via your Pause Menu Settings.
  • Moved controls from text chat to a dedicated help notification since a lot of people said the chat was too hard to read on busy servers. The new help notification also correctly shows any custom set controls.
    • A config option has been added allowing you to control how long the help notification should be shown.

Fixed:

  • A bug where you could attach a vehicle infinitely high/low on a tow truck, bypassing the max distance check. This was due to the use of a 2D distance check, whoops.

Public Beta Version 1.21

21 Nov 08:03
66fe1c0

Choose a tag to compare

top_image|2120x352

Inferno Collection: Vehicle Attachment

Build Status

Public Beta Version 1.21

A lightweight vehicle attachment/tow script for FiveM. Attach vehicles to other vehicles and adjust the positioning with easy to use keybinds. Multiple attachments to the same vehicles (such as a flatbed trailer) are also possible.

Presently, the following can be customized:

  • Toggleable line that is drawn to show you what vehicle you are interacting with.
  • Toggleable chat message instructions on how to move vehicles around.
  • Attachment black/whitelist.
    • Toggleable between the two.
    • Toggleable option to have a complete whitelist, allowing control of which vehicles can and cannot be towed.
  • Max distance from tow vehicles other vehicles can be attached.
  • Control over how fast/slow attachment positioning is.

Usage:

  • Go up to a vehicle and type /attach
  • Select the tow vehicle, and then vehicle to be towed with the Enter key
  • Follow on screen instructions to position the vehicle
  • Repeat for as many vehicles as you would like to attach
  • When ready to detach, type /detach and vehicles will detach in the reverse order they were attached

Development Showcase Video

Watch the Development Showcase video

Pictures

Image 1
Image 2
Image 3
Image 4

Download link

https://github.com/inferno-collection/Vehicle-Attachment/releases/latest

The Inferno Collection Team

Public Alpha Version 1.21

08 Nov 09:21

Choose a tag to compare

Pre-release

DO NOT BLINDLY UPDATE // THIS IS A DEVELOPMENT BUILD

Important Note: If you test this resource in your server, please report back to us! We have not thoroughly tested this update and would appreciate your feedback.

Added:

  • Support to attach multiple vehicles at the same time using the new /attach and /detach commands respectively.
    • Vehicles will detach in the reverse order you attached them.
  • Max distance from tow vehicle that other vehicles can interacted with.
    • Vehicles cannot be attached if they are outside the max range, nor can vehicles be positioned further than the max range.
  • Blacklist and whitelist.
    • Vehicle models can be listed in AttachmentBlacklist.
      • If BlacklistToWhitelist and WhitelistForTowedVehicles are true, then only vehicles in the AttachmentBlacklist will be able to be used as tow vehicles and vehicles to be towed.
      • If BlacklistToWhitelist is true, and WhitelistForTowedVehicles is false, then only vehicles in the AttachmentBlacklist will be able to be used as tow vehicles, and any vehicles will be able to be towed.
  • Command to bring up tow instructions at will.
    • /attach help or /detach help (same thing).

Changed:

  • The way vehicles are detached.
    • It seems the "flipping when detached" bug was in fact still not fixed, so it has now changed so that if vehicles are placed near the ground when detached, they will be placed on the ground automatically. Vehicles that are placed high enough in the air will still fall from the sky, and (hopefully) not flip anymore. Let me know lol.
  • Commands now trigger events, this way you can call these events from your own resources as you wish.
    • Inferno-Collection:Vehicle-Attachment:NewAttachment starts the process of attaching a vehicle to another vehicle.
    • Inferno-Collection:Vehicle-Attachment:RemoveLastAttachment starts the process of detaching one vehicle from another vehicle.
  • Expanded all one line if statements for the sake of readability.
  • Commented remaining undocumented functions.

Fixed:

  • Capitalization error in AttachmentStage enum.
  • Server project package references.

Removed:

  • Config option to enable and disable sounds, due to the confusion it caused.

Public Alpha Version 1.2

11 Oct 09:39

Choose a tag to compare

Pre-release

DO NOT BLINDLY UPDATE // THIS IS A DEVELOPMENT BUILD

Important Note: If you test this resource in your server, please report back to us! We have not thoroughly tested this update and would appreciate your feedback.

Added:

  • Optional selection sounds
  • More configuration options in separate configuration file
  • Additional checks while attaching/detaching to auto cancel when a vehicle is deleted

Changed:

  • Rewritten in C#
  • Hint and notification messages to include vehicle name
  • Licence wording

Fixed:

  • Cars sometimes flipping when detaching them