
πTrailers
Easily add trailers than can be used to attach vehicles to in Config.Trailers
IMPORTANT INFORMATION
Trailers are
NOTspawned via this script, it just adds the logic to them allowing vehicles to be attached. You must ensure you have your own methods of spawning trailersThe
keyis the trailer spawn name
Trailer Name
The
keyis the spawn name of the trailer you wish to add the attachment logic toThe trailer must be in your vehicles.lua
['my_custom_trailer_name'] = { -- the key is the trailer name
---
},Ramps
Define the prop model used for the ramp
The offset must be a
vec3value
['my_custom_trailer_name'] = { -- the key is the trailer name
ramp = { -- define ramp settings
model = 'xs_prop_x18_flatbed_ramp', -- ramp model
offSet = vec(0.0, -8.30, -1.8), -- ramp offset
rotation = 180.0, -- ramp rotation
},
---
},Black Listed Vehicles
Define black listed vehicles that can not be attached by defining their spawn name in the black listed table
These must be in your vehicles.lua
Finished Config
Below is an example of a finished config entry for a custom trailer with a black listed vehicle
Last updated