[Standalone] Advanced Trailers

Update (v1.0.6):

  • Added support for NUI text provided by ox_lib instead of rage UI help message. Can also disable this to continue using the rage UI
  • Added NUI Text / Rage Help Messages for attaching trailers (Can be enabled, disabled by default… only works if you have any trailer enabled)
  • Added NUI Text / Rage Help Messages for parking vehicles on the trailer (Can be disabled, enabled by default)
  • Added a config for the cargo plane to showcase that the trailer script can be used virtually on anything
  • Removed the export check for the gs-trucking job to use stage bags instead that are added to the job trailer (performs better)
  • Added NUI Text support for managing the trailer as well if you aren’t using a targeting system

Example of NUI Text
Example of Cargo Plane

1 Like

so basically this trailer script works on EVERYTHING now?

:grinning: as long as it fits

Can you save with vehicles on trailer in garage?

That would require modification to whatever framework or garage system you use. This resource isnt framework dependent

whats the config look like to setup a new vehicle as a trailer? IE: is it difficult to add more vehicles

I persoanlly think its relatively easy, just need to know the door id’s, or extra’s id’s. If its a static trailer with no doors or ramps it’s a little bit more complicated but I’ve created a command to handle most of the work for you.

how do you actually get the rotation vector of the trailer it goes it weird spots when tryinng to get the flatbed trailer and car on it. tried the command in documentation just having issues getting rotation vector to work?

1 Like

/traileroffset ModelName

ModelName = the spawn name of the trailer. It will copy the required offset to your clipboard.
Something like;
{offset = vec3(0.75281023979187, -1.0817284584045, -0.60014188289642), rotation = vec3(-3.0833566255772e-10, -1.4943803989809e-06, 1.9076843261719)}

most of the time you can replace the rotation to vec(0.0, 0.0, 0.0) as it will just place the vehicle in the direction the trailer is facing.

The offset is the more important part… that will control the forward/backward, left/right, up/down position relative to the trailer

Ill make an example video really quick how to do this. Give me a moment

1 Like

thankyou for the reply. ill wait to you post a video.

Here you go… i used “trflat” for this example. First i created the loading offset where vehicles can be loaded onto and off the trailer. Then I created two bed offsets where vehicles will be placed.

Example

1 Like

this gives me the idea of how to do it. will try again and let you know how i go.

1 Like

from watching the video i got it to work and now car goes on flat bed properly thankyou for the video it did help.

2 Likes

of course, feel free to reach out if you need help

amazing support i can tell ur gonna have an amazing impact on FiveM Servers :slight_smile:

1 Like

The trucking job have this script incorporate? thank you

a very basic version just for the job specific trailers

Ok thank you, we need a pack

:grin:

yes we need pack for the trailer to be used

where to get this

Unfortunately I may not be able to provide a trailer pack. I was showing off other creators work being used with my script. You’re more than welcome to visit their stores/communities to purchase their trailers that can be easily setup however you want with my resource. More information can be found in the readme.txt file within your tebex download