-
-
Notifications
You must be signed in to change notification settings - Fork 60
Trailer Support
⚠️ Requires v3.2.5-beta and newer.
The 'trailer-support' plugin allows more control over trailer attributes such as door position and active extras. It also adds shortcuts which can be used to toggle multiple extras across both the towing vehicle and trailer instantly.
- Ensure that
plugins_installed
is set to true inlvc/SETTINGS.lua
. - Open the SETTINGS.lua located in
lvc/PLUGINS/trailer_support
. - Now configure the TRAILERS table to your liking.
Example: 'cfrladtcab' is the cab of a tiller fire truck, aka the tow vehicle.
TRAILERS = {
['<modelName>'] = {
{ "<shortcut name>", { { Trailer = <if the extra is on trailer or tow vehicle>, Extra = <extraId>, State = <state extra should be in when activated> }, { Trailer = < >, extra = < >, State = < > } } },
},
['cfrladtcab'] = {
{ "Raise Ladder", { { Trailer = false, Extra = 8, State = true }, { Trailer = true, Extra = 2, State = false } } },
{ "Lower Ladder", { { Trailer = false, Extra = 8, State = false }, { Trailer = true, Extra = 2, State = true } } },
{ "Open All Doors", { { Trailer = false, Extra = 1, State = false }, { Trailer = true, Extra = 1, State = false } } },
{ "Close All Doors", { { Trailer = false, Extra = 1, State = true }, { Trailer = true, Extra = 1, State = true } } },
}
}
-
Name: The first item in a shortcut table is the shortcut name field, this is what will show up as the name of the menu button in game. Try to limit this to a few words as it may otherwise not fit in the menu.
-
Trailer Flag: The trailer flag is included in each shortcut subtable and identifies if the extra ID passed is on the trailer or cab/truck.
-
Extra ID: The extra ID intended to be toggled. This currently only allows a single extra ID, in the future it may allow for more.
-
State: Should the extra be on or off when toggled. This ensures that regardless of the vehicle spawn state or current extra state LVC will track and toggle extras.
- Finished ✅ , test it out in game under the 'PLUGINS/Trailer Support' menu.