[FREE][Standalone] Waypoint Tow / Hauling

This script provides an intuitive and user-friendly solution for towing and hauling vehicles and props. Unlike other scripts, it attaches vehicles and objects at their exact positions rather than teleporting it to a hardcoded spot. You can attach any number of vehicles/objects, the only limit is the physical space on your tow vehicle.

Players can configure their towing/hauling load however they see fit and let their imagination run wild. By default, there is no limit to what vehicles or objects can be towed, allowing for maximum creativity and roleplay immersion. However, you can configure the script to limit the vehicles that can be used to tow if you wish.

Preview Video
GitHub repo: wp-tow-hauling

Overview

Some examples of what you can do with this script:

  • haul multiple offroad / non street legal vehicles to your destination
  • haul motorcycle(s) on the back of a pickup truck
  • haul boats on a trailer
  • haul multiple vehicles using the car carrier trailer (tr2)
  • haul cargo on a trailer (crates, pallets, etc)
  • create a mobile farmers market on the back of a pickup truck
  • create a mobile firework show on a party bus (with wp-fireworks)
  • create immersive jobs where players can haul vehicles or props to a destination

The scenarios that can be created with this script are limited only by your imagination.

Best paired with a script that can be used for placing props in the world such as Waypoint Placeables.

Usage

Towing

  1. Enter tow selection mode by using the command /tow or by using the event wp-hauling:client:startTowSelection
  2. Look at and select the vehicle you will be towing to
  3. Look at and select the vehicle/object you want to tow/haul
  4. Confirm or cancel the selection
  5. If confirmed, the vehicle/object will be attached to the tow vehicle at its exact position

Repeat steps 1-5 as many times as you like to attach more vehicles/objects.

Untowing

  1. Enter untow selection mode by using the command /untow or by using the event wp-hauling:client:startUntowSelection
  2. Look at and select the vehicle/object you want to untow
  3. Vehicle/object will be unattached and remain in the same position

Performance

This script was written with performance in mind. The only time the resource will run higher than 0.00ms is while in tow/untow select mode when we are running the raycast thread. Otherwise there are no other threads or loops running.

Idle: 0.00ms
With vehicles attached: 0.00ms
Attachment mode active: 0.02ms - 0.08ms (drawing markers + using raycast to detect selection)
- After selection is confirmed resource returns to 0.00ms

Dependencies

This resource was designed to be standalone and does not require any other resources to function.

If you want to use notifications, there is a built in framework wrapper around the Notify() function to hook into the notifications framework of your choice.

Additional Notes

For the best experience, it is recommended to have a script for placing/carrying/moving props in the world. Waypoint Placeables is a great option for this and also provides ramp items that can be used to easily load vehicles onto trailers.

This script is designed to be immersive and attach vehicles in place. As such it does not teleport vehicles onto your tow vehicle. To be able to tow broken down cars, it is recommended to have a script for pushing broken down cars. You can then place a ramp, and push the vehicle up the ramp onto your tow trailer.

Gallery

image

image

image

image

Checkout my scripts

13 Likes

wow nice job bro…

pd: some time ago i downloaded your wp-printer script but i had a problem mentioned here

1 Like

how will this interact with the tow truck job and the /tow commands?

You can change the name of the command so it does not collide together!

1 Like

If you are referring to the default qb-towjob, it should override the command, however results not guaranteed. I would suggest removing the qb-towjob implementation of /tow, and using the radial menu for the job itself.

If you must change the name of the wp-towing event, the only code in the server lua are the commands, so it should be pretty easy to change to your liking :slight_smile:

1 Like


Perfect Script xD

1 Like

cool script, if I have a broken car, how do I haul it, or tow it. It looks like it has to be a working car that needs to be towed.

Via a ramp + push vehicle script

1 Like

Hello, i have a problem if i attach a vehicle to any transport vehicle.

Make sure you are following the prompts. First target the tow vehicle, then target the vehicle/object you are trying to tow. From your screenshot looks like you are doing this in the wrong order, you probably selected the bike first.

1 Like

Alright. But if the player dont know this thing like me. Can u repair this thing?

There is nothing to “repair”. All the player needs to do is slow down and read the prompt that clearly states what to do.

These are the prompts: "“Select tow vehicle”, "“Select target to tow”, “Confirm selection”.

If these strings are unclear to you, you are more than welcome to modify them on your fork of the code to something that makes more sense to you.

1 Like