⚡Extra Integrations
Toggle extras based on vehicle states.
Last updated
Toggle extras based on vehicle states.
Last updated
The "extra_integration" plugin handles specific actions based on vehicles state (braking, accelerating, reversing, stopped, etc.). The primary function is to enable LVC to add / remove vehicle extras based on these states. This allows vehicle developers to map extras to specific vehicle features like light bar brake lights, or rear emergency light reverse override. Future states and extras may be added later.
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.
Common Name | String | Trigger |
---|---|---|
Brake Lights |
| Vehicle is in braking. |
Reverse Lights |
| Vehicle is in reverse. |
Right Indicator |
| Vehicles left turn signal is active. |
Left Indicator |
| Vehicles right turn signal is active. |
Takedowns |
| Take-downs are enabled (requires takedowns plugin). |
Driver Seat |
| Driver seat occupied. |
Driver Door |
| Driver door not latched. |
Passenger Door |
| Passenger door not latched. |
Trunk |
| Trunk is not latched. |
Main Siren |
| Main/Primary siren is activated. |
Aux Siren |
| Aux/Pwrcall siren is activated. |
Air Horn |
| Air horn is active. |
Manual Tone |
| Primary or Secondary Manual tone is active. |
Ensure that plugins_installed
is set to true in lvc/SETTINGS.lua
.
Open the SETTINGS.lua located in /plugins/extra_integration
. Adjust settings to your liking.
A toggle key will toggle a single extra on trigger or multiple extra if a table is passed in.
Single Example: toggle = { "DSeat" }
Multiple Example: toggle = { "Takedowns", "AirHorn" }
Add / Remove tables are not currently supported, instead use toggle. Use reverse
flag to change when state is "active".
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 add repair = true
somewhere inside the desired trigger table.
Examples:
[7] = { repair = true, toggle = { "Takedowns", "AirHorn" } },
[8] = { repair = true, toggle = { "DSeat" } },
Finished, configure your personal settings in game under 'Plugins->Extra Integrations' menu.