🎮Extra Controls
Toggle extras on the fly with hotkeys.
Last updated
Toggle extras on the fly with hotkeys.
Last updated
The "extra_controls" plugin handles specific extra toggling on demand using key bindings. The allows players the ability to toggle spotlights, light cuts, scene lights conveniently without navigating through existing menus. Controls can be set by default or left disabled, if allow_custom_controls
is set to true, players can change each control combo and key in game through an LVC menu.
Ensure that plugins_installed
is set to true in lvc/SETTINGS.lua
.
Open the SETTINGS.lua located in /plugins/extra_controls
. Adjust settings to your liking.
Determine a set of controls/combos that players can use. Configure the EXTRA_CONTROLS table to your liking. List of Keys: CFX Game Reference - Controls
Example:
Configure the EXTRA_CONTROLS table to your liking. Example:
Every default Combo
and Key
assignment need to be present at a minimum in the CONTROLS table.
A toggle key will toggle a single extra on trigger or multiple extra if a table is passed in.
Single Example:
{ Name = 'Test', Extras = { toggle = 4 }, Combo = 155, Key = 20 }
Multiple Example:
{ Name = 'Test', Extras = {
toggle= { 4, 5 } }, Combo = 155, Key = 20 }
An add and remove key will add the passed extra(s) on trigger and remove passed extras(s) on trigger. When the control is pressed again, the behavior will reverse adding the removed extra(s) and removing the added extra(s).
Single Example:
`{ Name = 'Test', Extras = { add = 4, remove = 5 }, Combo = 155, Key = 20}
Multiple Example:
{ Name = 'Cruise', Extras = { add = { 4, 8 }, remove = { 5, 9 }, Combo = 155, Key = 20}
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:
{ Name = 'Test', Extras = { toggle = 4, repair = true }, Combo = 155, Key = 20 }
{ Name = 'Cruise', Extras = { add = { 5 }, remove = { 6 }, repair = true }, Combo = 155, Key = 20 }
Combo: combokey to be pressed in addition to key in order to activate profile. Combo = 0
to disable the need for a combo key.
Key: control to be pressed with combokey (if set) in order to activate profile.
The audio flag determines if the plugin plays a button press soundfx (like heard when toggling siren) when the extra_control profile is toggled.
Finished, configure your personal settings in game under 'Plugins->Extra Control' menu.