Targeting System
A targeting system is required to interact with the trailers and their various functions. This is where you can chose which system works best for you. Right now ox_target, qb-target, and inside-interaction are supported. You can configure a custom name if you've changed the default resource name and you can adjust the targeting distance. You can also set it to false for the classic GTA help message.
NUI Text / Rage UI
You can enable or disable NUI Text in favor of the classic Rage UI help message as well adjust the position of the NUI text message.
You can also change the keybind used for NUI Text / Rage UI help message (also changes the keybind for inside-interaction resource if you configured it)
Any Trailer System
I highly recommend keeping this enabled. This will allow trailers to be attached to trucks that haven't been configured in their metas to do so. As long as the appropriate bones exist it will attach
You can enable/disable the connect message when approaching an attachable trailer. You can also adjust the distance in which the trailers can connect. Secondary trailers default to 0.6 because of how they work and they and their unsupported nature naturally in the rage engine. Secondary trailers also require the connecting model names to be configured in their respective meta files.
Attachment Helpers
These settings will enable/disable the help markers displayed on the attachment bones of both the trailers and trucks to help players connect them. They will turn red to green when they can be attached. You can also adjust the size of the markers.
Static Helpers
Enable/Disable the static trailer helper/marker drawn at the loading point of configured trailers. You can also adjust the size of the marker
B-Train / Double Trailers
This system allows for for more than one trailer to attach to each other. Theoretically you could have as many as you want. Note: The more trailers you connect to each other the harder things will become such as moving in reverse
You can enable/disable the system. You can change the limit of trailers in a total link. You can enable/disable player invisibility when attempting the link. Because of the nature of how this works, I highly suggest keeping this enabled if possible. You can adjust the max attempts, dont set this too high or else players will be spending a lot of time attempting to double connect trailers if they aren't aligned well enough to make the connection.
Keeping the helpers enabled will make this process easier. I've built a robust system to make this as seamless as possible, guiding players through it.
Trailer Attachment
Enable/Disable the attach message. You can also change the keybind to attach vehicles to trailers. They will be frozen in place when done so and can be accessed with the menu through the targeting system. You can also change the attachment distance for boat trailers since many of them are sometimes too small not allowing the craft to fit in its bounding box
Trailers
You will be able enable/disable a forced whitelist. This means that trailers will not work with this system unless they are configured to do so. I highly suggest configuring all of your trailers with this mechanic to ensure they are fully supported giving your players the best experience.
You can blacklist specific trailer beds. This is useful to make sure sure flatbeds used in a flatbed script do not conflict with the mechanics of this script.
I have located over 40+ trailers and pre configured them to work with this system, a majority of them being custom addon trailers that you will need to find on your own. You can also add you own and I encourage you to share your custom configurations via our discord for others to find.
isBoat: Specifies whether or not the trail is for boats only
isDolly: Specifies if the trailer is strictly a dolly.. I have employed a special mechanic to make these easier to use, and setting this to true would enable those mechanics
onAttachedExtras: These extras will be enabled with the trailer is successfully attached
ramp: information for the targeting system's menu to control doors, lifts, and ramps on a trailer
label: name of the door/lift/ramp
instant: Specifies whether or not doors should be closed instantly for special use cases
doors: Doors ID's to be opened and closed
wait: This is a small wait time after doors are opened or closed to allow completion before other special mechanics are triggered to ensure a seamless experience. (An example would be a lift moving up and down slowly)
extras: These are vehicle extra ID's you want to trigger on open and close. (Some trailers use extras instead of doors.. and some use both. This system will support any case)
extrasHealth: A small trick when some trailers require a repair for the extra to appear. Enable this ONLY when that's required.
static: Configure static trailers of maybe add static loading point for unreachable parts of the trailer.
load: This is the point where the vehicle will be loaded onto the trailer, or placed when unloaded.
bed: This table will contain all of the static mounting/attachment points on the bed of the trailer. Max load calculations will be done automatically when trying to load a new vehicle onto the trailer.
Last updated