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.
This resource requires at least OneSync “legacy”. Use Public Beta Version 1.3 if you do not want to use OneSync.
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 number of vehicles attached to one tow vehicle
Max distance from tow vehicles other vehicles can be attached.
Control over how fast/slow attachment positioning is.
Option to drive vehicles onto towing vehicle to confirm position (/attach driveon)
Usage:
Go up to a vehicle and type /attach or /attach driveon
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 near a tow vehicle and vehicles will detach in the reverse order they were attached
Check out the Wiki for help setting up the resource.
Development Showcase Video (Showing Public Beta Version 1.21)
At first I was like “Meh that’s just a tow system, already saw this” but when you showed the quad in the pickup and the bicycle at the back of the SUV, now you got my attention
I love this release, my only thing is some people use keyboards that don’t offer a Numpad so it’d be nice to have a config for keybinds so we could change it to arrow keys or something. Good release though!
One question I do have, is it possible to move the little notifications that come up behind chat to the top right instead of top left so it’s not tucked behind chat?
Nice release. Have you thought about using the key mappings, then players would be able to make it their own key and then the instructional_buttons scaleform for showing the keys?
Superb resource!
Maybe make an update to be able to block the command / attach to some people?
And maybe have a language file, to be able to translate the script?
Hi. Great release.
Came here with few ideas.
Would it be possible to have some kind of prop support? Like picking up the prop from the ground and put it on a car.
Or another standalone attach script that would allow to put objects to a car. Speakers and what ever else there is.
With some limits obviously. Like size limit. No collisions. And maybe few staff commands that can clear attachments. Would be useful when someone attaches something big. And toggle collison for a selected prop command. People will abuse the hell out of it when it would allow to attach a massive building with collision enabled. Had one when I was a mod in one mta server.
Back in mta days we had something like this. People made some crazy things to their vehicles.
My english isn’t great here. Hopefully you got the idea.
Since this resource is half and half between a tow script and a general purpose attachment script, I won’t be adding anything too tow specific, such as tow sounds, tow props, etc. Thanks for the suggestion though.
That’s far outside the scope of this resource I’m afraid, and I won’t be creating a separate one just for that. If someone else wants to take this resource and rewrite it to achieve what you are after, they’re free to do so, so long as they operate within the license.