-
-
Notifications
You must be signed in to change notification settings - Fork 60
Extra Integrations Previous Versions
In addition to toggling extras, this plugin can be used to handle brake light function when stopped, automatically applying brake lights without the control needing to be held.
Currently Supported States/Extras:
Common Name | Table Name | Trigger |
---|---|---|
Brake Lights | EXTRA_ASSIGNMENTS.Brake |
Vehicle is in braking. |
Reverse Lights | EXTRA_ASSIGNMENTS.Reverse |
Vehicle is in reverse. |
Right Indicator | EXTRA_ASSIGNMENTS.RIndicator |
Vehicles left turn signal is active. |
Left Indicator | EXTRA_ASSIGNMENTS.LIndicator |
Vehicles right turn signal is active. |
Takedowns | EXTRA_ASSIGNEMENTS.Takedowns |
Take-downs are enabled (requires takedowns plugin). |
Driver Door | EXTRA_ASSIGNEMENTS.DDoor |
Driver door not latched. |
Passenger Door | EXTRA_ASSIGNEMENTS.PDoor |
Passenger door not latched. |
Trunk | EXTRA_ASSIGNEMENTS.Trunk |
Trunk is not latched. |
Main Siren | EXTRA_ASSIGNEMENTS.MainSiren |
Main/Primary siren is activated. |
Aux Siren | EXTRA_ASSIGNEMENTS.AuxSiren |
Aux/Pwrcall siren is activated. |
Air Horn | EXTRA_ASSIGNEMENTS.AirHorn |
Air horn is active. |
Manual Tone | EXTRA_ASSIGNEMENTS.Manu |
Primary or Secondary Manual tone is active. |
-
Ensure that
plugins_installed
is set to true inlvc/SETTINGS.lua
. -
Open the SETTINGS.lua located in
lvc/plugins/extra_integration
. Adjust settings to your liking. -
Now configure the EXTRA_ASSIGNMENTS table to your liking. The Extra Assignments table is very dynamic an allows for multiple set up variations.
Example:EXTRA_ASSIGNMENTS = { ['DEFAULT'] = { Brake = { toggle = 1 }, Reverse = { toggle = 2 }, Takedowns = { add = { 5 }, remove = { 6 }, repair = true}, DDoor = { toggle = 3 }, PDoor = { toggle = 4 }, Trunk = { toggle = 7 }, MainSiren = { toggle = 8 }, AuxSiren = { toggle = 9 }, AirHorn = { toggle = 10 }, Manu = { toggle = 11 }, }, }
A toggle key will toggle a single extra on trigger or multiple extra if a table is passed in.
- Single Example:
Brake = { toggle = 1 }
- Multiple Example:
Brake = { toggle = { 1, 2, 3, ... n } }
An add and remove key will add the passed extra(s) on trigger and remove passed extras(s) on trigger. When the trigger is no longer active, the behavior will reverse adding the removed extra(s) and removing the added extra(s).
- Single Example:
Brake = { add = 1, remove = 2 }
- Multiple Example:
Brake = { add = { 1, 3 }, remove = { 2, 4 } }
A repair flag can optionally be added for higher poly extras. GTA will set extras of low poly items without repairing the vehicle, however for things like spotlights, lightbars, etc. the repair flag may need to be set. By default
repair
is set to disabled, to override addrepair = true
somewhere inside the desired trigger table.- Examples:
Brake = { toggle = 1, repair = true }
Takedowns = { add = { 5 }, remove = { 6 }, repair = true }
- Single Example:
-
Finished ✅ , configure your personal settings in game under 'Plugins/Extra Integrations' menu.