### Add Resource to server.cfg Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Installation This snippet shows how to add the Luxart Vehicle Control resource to your FiveM server configuration file (server.cfg) to ensure it loads. ```cfg ensure lvc ``` -------------------------------- ### Traffic Advisor Add/Remove Examples (Lua) Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Traffic-Advisor Illustrates how to configure the 'add' and 'remove' keys within the traffic_advisor plugin's TA_ASSIGNMENTS table. Shows examples for handling single or multiple extras to be added or removed when the traffic advisor state changes. ```lua -- Single Example: on = { add = 1, remove = 2 } -- Multiple Example: on = { add = { 1, 3 }, remove = { 2, 4 } } ``` -------------------------------- ### WM-ServerSiren Examples Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Server-Sided-Audio-Integration Provides a list of siren configurations for the WM-ServerSiren system. Each entry includes a name, a string identifier for the siren sound, and a reference to the sound set. ```lua SIRENS = { --[[1]] { Name = "Airhorn", String = "SIRENS_AIRHORN", Ref = 0 }, --1 --[[2]] { Name = "Wail", String = "VEHICLES_HORNS_SIREN_1", Ref = 0 }, --2 --[[3]] { Name = "Yelp", String = "VEHICLES_HORNS_SIREN_2", Ref = 0 }, --3 --[[4]] { Name = "Priority", String = "VEHICLES_HORNS_POLICE_WARNING", Ref = 0 }, --4 --[[5]] { Name = "Futura", String = "RESIDENT_VEHICLES_SIREN_WAIL_01", Ref = 0 }, --5 --[[6]] { Name = "Hetro", String = "RESIDENT_VEHICLES_SIREN_WAIL_02", Ref = 0 }, --6 --[[7]] { Name = "Sweep-1", String = "RESIDENT_VEHICLES_SIREN_WAIL_03", Ref = 0 }, --7 --[[8]] { Name = "Sweep-2", String = "RESIDENT_VEHICLES_SIREN_QUICK_01", Ref = 0 }, --8 --[[9]] { Name = "Hi-Low", String = "RESIDENT_VEHICLES_SIREN_QUICK_02", Ref = 0 }, --9 --[[10]] { Name = "Whine Down", String = "RESIDENT_VEHICLES_SIREN_QUICK_03", Ref = 0 }, --10 --[[11]] { Name = "Powercall", String = "VEHICLES_HORNS_AMBULANCE_WARNING", Ref = 0 }, --11 --[[12]] { Name = "QSiren", String = "VEHICLES_HORNS_FIRETRUCK_WARNING", Ref = 0 }, --12 --[[13]] { Name = "Fire Yelp", String = "RESIDENT_VEHICLES_SIREN_FIRETRUCK_WAIL_01", Ref = 0 }, --13 --[[14]] { Name = "Fire Yelp", String = "RESIDENT_VEHICLES_SIREN_FIRETRUCK_QUICK_01", Ref = 0 }, --14 -- START OF WM-SERVERSIRENS -- --[[15]] { Name = "Example Tone", String = "SIREN_ALPHA", Ref = "DLC_WMSIRENS_SOUNDSET" }, --15 --[[16]] { Name = "Siren Bravo", String = "SIREN_BRAVO", Ref = "DLC_WMSIRENS_SOUNDSET" }, --16 --[[17]] { Name = "Custom C", String = "SIREN_CHARLIE", Ref = "DLC_WMSIRENS_SOUNDSET" }, --17 --[[18]] { Name = "Yelp", String = "SIREN_DELTA", Ref = "DLC_WMSIRENS_SOUNDSET" }, --18 --[[19]] { Name = "Priority", String = "SIREN_ECHO", Ref = "DLC_WMSIRENS_SOUNDSET" }, --19 --[[20]] { Name = "Siren 3", String = "SIREN_FOXTROT", Ref = "DLC_WMSIRENS_SOUNDSET" }, --20 --[[21]] { Name = "Yelp", String = "SIREN_GOLF", Ref = "DLC_WMSIRENS_SOUNDSET" }, --21 --[[22]] { Name = "Custom H", String = "SIREN_HOTEL", Ref = "DLC_WMSIRENS_SOUNDSET" } --22 } ``` -------------------------------- ### Configure Extra Assignments in Lua Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Extra-Integrations-Previous-Versions Example configuration for the EXTRA_ASSIGNMENTS table in Lua, demonstrating how to map common extra names to specific toggle, add, remove, and repair settings. ```lua 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 }, }, } ``` -------------------------------- ### Configure Toggle Extra (Lua) Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Extra-Controls Example of configuring a single extra to be toggled on or off with a key press. This can also be applied to multiple extras if they are passed as a table. ```lua Brake = { toggle = 1 } ``` ```lua Brake = { toggle = { 1, 2, 3, ... n } } ``` -------------------------------- ### Configure Siren Sounds (Lua) Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Setup-&-Configuration Defines a table of siren sounds, mapping generic names to specific string identifiers for WAV files. This table is used to manage the available siren tones within the Luxart Vehicle Control system. Advanced users can also specify an 'Option' to control the default behavior of each siren. ```lua SIRENS = { --[[1]] { Name = "Airhorn", String = "SIRENS_AIRHORN", Ref = 0 }, --1 --[[2]] { Name = "Wail", String = "VEHICLES_HORNS_SIREN_1", Ref = 0 }, --2 --[[3]] { Name = "Yelp", String = "VEHICLES_HORNS_SIREN_2", Ref = 0 }, --3 --[[4]] { Name = "Priority", String = "VEHICLES_HORNS_POLICE_WARNING", Ref = 0 }, --4 --[[5]] { Name = "Futura", String = "RESIDENT_VEHICLES_SIREN_WAIL_01", Ref = 0 }, --5 --[[6]] { Name = "Hetro", String = "RESIDENT_VEHICLES_SIREN_WAIL_02", Ref = 0 }, --6 --[[7]] { Name = "Sweep-1", String = "RESIDENT_VEHICLES_SIREN_WAIL_03", Ref = 0 }, --7 --[[8]] { Name = "Sweep-2", String = "RESIDENT_VEHICLES_SIREN_QUICK_01", Ref = 0 }, --8 --[[9]] { Name = "Hi-Low", String = "RESIDENT_VEHICLES_SIREN_QUICK_02", Ref = 0 }, --9 --[[10]] { Name = "Whine Down", String = "RESIDENT_VEHICLES_SIREN_QUICK_03", Ref = 0 }, --10 --[[11]] { Name = "Powercall", String = "VEHICLES_HORNS_AMBULANCE_WARNING", Ref = 0 }, --11 --[[12]] { Name = "QSiren", String = "VEHICLES_HORNS_FIRETRUCK_WARNING", Ref = 0 }, --12 --[[13]] { Name = "Fire Yelp", String = "RESIDENT_VEHICLES_SIREN_FIRETRUCK_WAIL_01", Ref = 0 }, --13 --[[14]] { Name = "Fire Yelp", String = "RESIDENT_VEHICLES_SIREN_FIRETRUCK_QUICK_01", Ref = 0 }, --14 } ``` -------------------------------- ### Configure Siren Assignments (Lua) Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Setup-&-Configuration Defines the SIREN_ASSIGNMENTS table to map vehicle game names to specific siren tone IDs. This allows for custom siren configurations for different vehicle types, ensuring the correct siren sounds are used. The 'DEFAULT' key is mandatory as a fallback. ```lua SIREN_ASSIGNMENTS = { --[''] = { , , , ... }, ['DEFAULT'] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }, ['FIRETRUK'] = { 12, 13, 14, 11 }, ['AMBULAN'] = { 1, 2, 3, 4, 11 }, ['LGUARD'] = { 1, 2, 3, 4, 11 }, } ``` -------------------------------- ### fxmanifest.lua Convars for Luxart Vehicle Control Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Setup-&-Configuration Configuration options for the Luxart Vehicle Control resource that can be set in the fxmanifest.lua file. These options control experimental message muting and debug logging. ```lua -- Mutes experimental messages for server console. -- Example: sv_experimental = true -- Increases console logging for client, prints of vehicle if no profile was found. -- Example: sv_debug_mode = true ``` -------------------------------- ### Configure SIRENS Table in Lua Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Server-Sided-Audio-Integration This Lua code snippet demonstrates the structure of the SIRENS table used in LuxArt Vehicle Control. It shows how to define siren names, their corresponding string identifiers, and reference sound sets, including examples for default GTA V sirens and custom sound sets. ```lua SIRENS = { --[[1]] { Name = "Airhorn", String = "SIRENS_AIRHORN", Ref = 0 }, --1 --[[2]] { Name = "Wail", String = "VEHICLES_HORNS_SIREN_1", Ref = 0 }, --2 --[[3]] { Name = "Yelp", String = "VEHICLES_HORNS_SIREN_2", Ref = 0 }, --3 --[[4]] { Name = "Priority", String = "VEHICLES_HORNS_POLICE_WARNING", Ref = 0 }, --4 --[[5]] { Name = "Futura", String = "RESIDENT_VEHICLES_SIREN_WAIL_01", Ref = 0 }, --5 --[[6]] { Name = "Hetro", String = "RESIDENT_VEHICLES_SIREN_WAIL_02", Ref = 0 }, --6 --[[7]] { Name = "Sweep-1", String = "RESIDENT_VEHICLES_SIREN_WAIL_03", Ref = 0 }, --7 --[[8]] { Name = "Sweep-2", String = "RESIDENT_VEHICLES_SIREN_QUICK_01", Ref = 0 }, --8 --[[9]] { Name = "Hi-Low", String = "RESIDENT_VEHICLES_SIREN_QUICK_02", Ref = 0 }, --9 --[[10]] { Name = "Whine Down", String = "RESIDENT_VEHICLES_SIREN_QUICK_03", Ref = 0 }, --10 --[[11]] { Name = "Powercall", String = "VEHICLES_HORNS_AMBULANCE_WARNING", Ref = 0 }, --11 --[[12]] { Name = "QSiren", String = "VEHICLES_HORNS_FIRETRUCK_WARNING", Ref = 0 }, --12 --[[13]] { Name = "Fire Yelp", String = "RESIDENT_VEHICLES_SIREN_FIRETRUCK_WAIL_01", Ref = 0 }, --13 --[[14]] { Name = "Fire Yelp", String = "RESIDENT_VEHICLES_SIREN_FIRETRUCK_QUICK_01", Ref = 0 }, --14 -- START OF SAS -- --[[15]] { Name = "New LSPD HORN", String = "OISS_SSA_VEHAUD_LSPD_NEW_HORN", Ref = "OISS_SSA_VEHAUD_LSPD_NEW_SOUNDSET"}, --15 --[[16]] { Name = "New LSPD ADAM", String = "OISS_SSA_VEHAUD_LSPD_NEW_SIREN_ADAM", Ref = "OISS_SSA_VEHAUD_LSPD_NEW_SOUNDSET"}, --16 --[[17]] { Name = "New LSPD BOY", String = "OISS_SSA_VEHAUD_LSPD_NEW_SIREN_BOY", Ref = "OISS_SSA_VEHAUD_LSPD_NEW_SOUNDSET"}, --17 --[[18]] { Name = "New LSPD CHARLES", String = "OISS_SSA_VEHAUD_LSPD_NEW_SIREN_CHARLES", Ref = "OISS_SSA_VEHAUD_LSPD_NEW_SOUNDSET"}, --18 --[[19]] { Name = "New LSPD DAVID", String = "OISS_SSA_VEHAUD_LSPD_NEW_SIREN_DAVID", Ref = "OISS_SSA_VEHAUD_LSPD_NEW_SOUNDSET"}, --19 --[[20]] { Name = "New LSPD EDWARD", String = "OISS_SSA_VEHAUD_LSPD_NEW_SIREN_EDWARD", Ref = "OISS_SSA_VEHAUD_LSPD_NEW_SOUNDSET"}, --20 --[[21]] { Name = "Old LSPD HORN", String = "OISS_SSA_VEHAUD_LSPD_OLD_HORN", Ref = "OISS_SSA_VEHAUD_LSPD_OLD_SOUNDSET"}, --21 --[[22]] { Name = "Old LSPD ADAM", String = "OISS_SSA_VEHAUD_LSPD_OLD_SIREN_ADAM", Ref = "OISS_SSA_VEHAUD_LSPD_OLD_SOUNDSET"}, --22 --[[23]] { Name = "Old LSPD BOY", String = "OISS_SSA_VEHAUD_LSPD_OLD_SIREN_BOY", Ref = "OISS_SSA_VEHAUD_LSPD_OLD_SOUNDSET"}, --23 --[[24]] { Name = "Old LSPD CHARLES", String = "OISS_SSA_VEHAUD_LSPD_OLD_SIREN_CHARLES", Ref = "OISS_SSA_VEHAUD_LSPD_OLD_SOUNDSET"}, --24 --[[25]] { Name = "Old LSPD DAVID", String = "OISS_SSA_VEHAUD_LSPD_OLD_SIREN_DAVID", Ref = "OISS_SSA_VEHAUD_LSPD_OLD_SOUNDSET"}, --25 --[[26]] { Name = "Old LSPD EDWARD", String = "OISS_SSA_VEHAUD_LSPD_OLD_SIREN_EDWARD", Ref = "OISS_SSA_VEHAUD_LSPD_OLD_SOUNDSET"}, --26 --[[27]] { Name = "New LSSD HORN", String = "OISS_SSA_VEHAUD_LSSD_NEW_HORN", Ref = "OISS_SSA_VEHAUD_LSSD_NEW_SOUNDSET"}, --27 --[[28]] { Name = "New LSSD ADAM", String = "OISS_SSA_VEHAUD_LSSD_NEW_SIREN_ADAM", Ref = "OISS_SSA_VEHAUD_LSSD_NEW_SOUNDSET"}, --28 --[[29]] { Name = "New LSSD BOY", String = "OISS_SSA_VEHAUD_LSSD_NEW_SIREN_BOY", Ref = "OISS_SSA_VEHAUD_LSSD_NEW_SOUNDSET"} --29 } ``` -------------------------------- ### Traffic Advisor Repair Flag Example (Lua) Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Traffic-Advisor Demonstrates the use of the 'repair' flag in the traffic_advisor plugin configuration. This flag is used for higher-poly extras that require the vehicle to be repaired when they are added, ensuring proper rendering in GTA. ```lua -- Example with repair flag enabled for adding extra 1: on = { add = 1, remove = {}, repair = true } -- Example with multiple extras and repair flag: on = { add = { 5 }, remove = { 6 }, repair = true } ``` -------------------------------- ### Set Community ID in SETTINGS.lua Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Setup-&-Configuration Configure a unique Community ID in the SETTINGS.lua file. This ID, consisting of 4-6 alphanumeric characters (dashes allowed, spaces not allowed), is required for version 3.2.3 and later to differentiate client-side saves between servers and ensure correct profile loading. Changing this ID after initial setup can lead to loss of LVC saves for all players. ```lua SETTINGS.community_id = "LCPS" -- Example: 4-6 alphanumeric characters, dashes allowed, no spaces ``` -------------------------------- ### FiveM Server Version Command Source: https://github.com/trevorbarns/luxart-vehicle-control/blob/stable/CONTRIBUTING.md This snippet demonstrates the console command to retrieve the version information of the FiveM server. This is helpful for users to identify the specific server build they are running when reporting issues. ```text version ``` -------------------------------- ### Configure Trailer Support Shortcuts (Lua) Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Trailer-Support This Lua code snippet demonstrates the configuration of the TRAILERS table within the 'trailer-support' plugin for LuxArt Vehicle Control. It defines shortcuts to control various extras on both the towing vehicle and the trailer, specifying whether an extra is on the trailer or cab and its desired state (on/off). ```lua TRAILERS = { [''] = { { "", { { Trailer = , Extra = , State = }, { 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 } } }, } } ``` -------------------------------- ### Request WM-ServerSirens Audio Banks (Lua) Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Server-Sided-Audio-Integration This section provides Lua code for requesting audio banks specifically for WM-ServerSirens. It differentiates between free and paid siren packs, showing how to load each one using the `RequestScriptAudioBank` function. ```lua RequestScriptAudioBank("DLC_WMSIRENS\SIRENPACK_ONE", false) ``` ```lua RequestScriptAudioBank("DLC_WALSHEY\SIRENPACK_ONE", false) RequestScriptAudioBank("DLC_WALSHEY\SIRENPACK_TWO", false) RequestScriptAudioBank("DLC_WALSHEY\SIRENPACK_THREE", false) RequestScriptAudioBank("DLC_WALSHEY\SIRENPACK_FOUR", false) ``` -------------------------------- ### Configure Plugin Settings Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Plugin-Support This snippet demonstrates how to configure a specific plugin by editing its corresponding SETTINGS.lua file located within the PLUGINS directory. This allows for customization of plugin behavior. ```lua -- Configure the desired plugin to your liking using /PLUGINS/XXXXX/SETTINGS.lua ``` -------------------------------- ### FiveM Server Info Endpoint Source: https://github.com/trevorbarns/luxart-vehicle-control/blob/stable/CONTRIBUTING.md This snippet shows how to access information about the FiveM server, including its version and operating system, by querying a specific IP address and port. This information is useful for reporting environment-specific issues. ```bash curl :30120/info.json ``` -------------------------------- ### Request Server-Sided Audio Banks (Lua) Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Server-Sided-Audio-Integration This snippet demonstrates how to request various server-sided audio banks for use in vehicle control systems. It includes a comprehensive list of supported audio banks, each with a description of the number of tones they support. Ensure you only request the banks you intend to use. ```lua RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_LSPD_NEW", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_LSPD_OLD", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_LSSD_NEW", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_LSSD_OLD", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_BCSO_NEW", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_BCSO_OLD", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_SAHP_NEW", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_SAHP_OLD", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_SAHP_BIKE", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_NOOSE_NEW", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_NOOSE_OLD", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_FIB_NEW", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_FIB_OLD", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_RHPD_NEW", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_RHPD_OLD", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_DPPD_NEW", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_DPPD_OLD", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_LSIA_NEW", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_LSIA_OLD", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_LSPP_NEW", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_LSPP_OLD", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_LSFD_NEW", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_LSFD_OLD", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_LSCOFD_NEW", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_LSCOFD_OLD", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_BCFD_NEW", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_BCFD_OLD", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_SANFIRE_NEW", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_SANFIRE_OLD", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_SAMS_NEW", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_SAMS_OLD", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_USFS_NEW", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_USFS_OLD", false) RequestScriptAudioBank("DLC_SERVERSIDEAUDIO\OISS_SSA_VEHAUD_ETC", false) ``` -------------------------------- ### Enable Plugin Support in SETTINGS.lua Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Plugin-Support This snippet shows how to enable plugin support in the Luxart Vehicle Control resource by modifying the SETTINGS.lua file. Ensure the 'plugins_installed' variable is set to true. ```lua plugins_installed = true ``` -------------------------------- ### Lua Extra Toggle Configuration Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Extra-Integrations-Previous-Versions Demonstrates how to configure a single extra to toggle on a specific trigger number, or multiple extras if a table of trigger numbers is provided. ```lua -- Single Example: Brake = { toggle = 1 } -- Multiple Example: Brake = { toggle = { 1, 2, 3, ... n } } ``` -------------------------------- ### Configure DPPD Vehicle Sound Sets (Lua) Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Server-Sided-Audio-Integration Defines sound sets for the DPPD (Los Santos Police Department) vehicle control system. It includes configurations for both new and old siren types, with specific sound set references for each. This data is likely used to map vehicle models or states to specific audio outputs. ```Lua --[[105]] { Name = "New DPPD HORN", String = "OISS_SSA_VEHAUD_DPPD_NEW_HORN", Ref = "OISS_SSA_VEHAUD_DPPD_NEW_SOUNDSET"}, --105 --[[106]] { Name = "New DPPD ADAM", String = "OISS_SSA_VEHAUD_DPPD_NEW_SIREN_ADAM", Ref = "OISS_SSA_VEHAUD_DPPD_NEW_SOUNDSET"}, --106 --[[107]] { Name = "New DPPD BOY", String = "OISS_SSA_VEHAUD_DPPD_NEW_SIREN_BOY", Ref = "OISS_SSA_VEHAUD_DPPD_NEW_SOUNDSET"}, --107 --[[108]] { Name = "New DPPD CHARLES", String = "OISS_SSA_VEHAUD_DPPD_NEW_SIREN_CHARLES", Ref = "OISS_SSA_VEHAUD_DPPD_NEW_SOUNDSET"}, --108 --[[109]] { Name = "New DPPD DAVID", String = "OISS_SSA_VEHAUD_DPPD_NEW_SIREN_DAVID", Ref = "OISS_SSA_VEHAUD_DPPD_NEW_SOUNDSET"}, --109 --[[110]] { Name = "New DPPD EDWARD", String = "OISS_SSA_VEHAUD_DPPD_NEW_SIREN_EDWARD", Ref = "OISS_SSA_VEHAUD_DPPD_NEW_SOUNDSET"}, --110 --[[111]] { Name = "Old DPPD HORN", String = "OISS_SSA_VEHAUD_DPPD_OLD_HORN", Ref = "OISS_SSA_VEHAUD_DPPD_OLD_SOUNDSET"}, --111 --[[112]] { Name = "Old DPPD ADAM", String = "OISS_SSA_VEHAUD_DPPD_OLD_SIREN_ADAM", Ref = "OISS_SSA_VEHAUD_DPPD_OLD_SOUNDSET"}, --112 --[[113]] { Name = "Old DPPD BOY", String = "OISS_SSA_VEHAUD_DPPD_OLD_SIREN_BOY", Ref = "OISS_SSA_VEHAUD_DPPD_OLD_SOUNDSET"}, --113 --[[114]] { Name = "Old DPPD CHARLES", String = "OISS_SSA_VEHAUD_DPPD_OLD_SIREN_CHARLES", Ref = "OISS_SSA_VEHAUD_DPPD_OLD_SOUNDSET"}, --114 --[[115]] { Name = "Old DPPD DAVID", String = "OISS_SSA_VEHAUD_DPPD_OLD_SIREN_DAVID", Ref = "OISS_SSA_VEHAUD_DPPD_OLD_SOUNDSET"}, --115 --[[116]] { Name = "Old DPPD EDWARD", String = "OISS_SSA_VEHAUD_DPPD_OLD_SIREN_EDWARD", Ref = "OISS_SSA_VEHAUD_DPPD_OLD_SOUNDSET"} ``` -------------------------------- ### Configure LVC Takedowns Plugin Settings Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Take-downs This snippet shows how to configure the Takedowns plugin for Luxart Vehicle Control by modifying the SETTINGS.lua file. It details essential settings such as enabling the plugin, setting activation keys, and adjusting the spotlight's visual properties like intensity, radius, distance, and falloff. It also covers high-beam integration options. ```lua -- lvc/SETTINGS.lua -- Ensure that plugins_installed is set to true -- plugins_installed = true -- lvc/PLUGINS/takedowns/SETTINGS.lua -- Master-switch: Toggles if plugin is enabled. Disabling this removes it from plugin menu, stops it's functionality. tkd_masterswitch = true -- Key: Key that activates take-downs, if tkd_combokey is depressed or disabled. tkd_key = 74 -- Example: J key -- Combokey: Activates tkd_key when depressed if not set to 0. tkd_combokey = 21 -- Example: Left Shift key -- Default Intensity: Sets default brightness of take-down light tkd_intensity_default = 100 -- Default Radius: Sets default spread angle in reference to vehicle. tkd_radius_default = 50 -- Default Distance: Sets default max distance light is visible, brightness effected by fall-off at distance. tkd_distance_default = 50 -- Default Falloff: Sets default distance that the light begins to dim due to distance. tkd_falloff_default = 1000 -- Sync Radius: Distance at which take-downs are synced to other users. ⚠️ This has extreme implications on performance, 400 or less is recommended. tkd_sync_radius = 400 -- Default High-Beam Integration: Sets default state for high-beam integration. -- 1: Trigger on high-beams -- 2: Trigger high-beams on take-down activation -- 3: Both tkd_highbeam_integration_default = 2 ``` -------------------------------- ### Configure Repair Flag for Extras (Lua) Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Extra-Controls Shows how to enable the 'repair' flag for extras, which is necessary for higher-polygon extras like spotlights or lightbars to ensure the vehicle is repaired when the extra is activated. ```lua Brake = { toggle = 1, repair = true } ``` ```lua Takedowns = { add = { 5 }, remove = { 6 }, repair = true } ``` -------------------------------- ### Lua Extra Repair Flag Configuration Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Extra-Integrations-Previous-Versions Illustrates how to enable the 'repair' flag for extras, which is necessary for higher-poly items to ensure proper vehicle repair. The flag can be added to toggle or add/remove configurations. ```lua -- Examples: Brake = { toggle = 1, repair = true } Takedowns = { add = { 5 }, remove = { 6 }, repair = true } ``` -------------------------------- ### Define BCFD Siren Sounds Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Server-Sided-Audio-Integration This snippet defines sound configurations for BCFD (Bay City Fire Department) vehicles. It includes mappings for both new and old siren types, specifying unique names, string identifiers, and reference strings for each sound set. ```Lua --[[165]] { Name = "New BCFD HORN", String = "OISS_SSA_VEHAUD_BCFD_NEW_HORN", Ref = "OISS_SSA_VEHAUD_BCFD_NEW_SOUNDSET"}, --165 --[[166]] { Name = "New BCFD ADAM", String = "OISS_SSA_VEHAUD_BCFD_NEW_SIREN_ADAM", Ref = "OISS_SSA_VEHAUD_BCFD_NEW_SOUNDSET"}, --166 --[[167]] { Name = "New BCFD BOY", String = "OISS_SSA_VEHAUD_BCFD_NEW_SIREN_BOY", Ref = "OISS_SSA_VEHAUD_BCFD_NEW_SOUNDSET"}, --167 --[[168]] { Name = "New BCFD CHARLES", String = "OISS_SSA_VEHAUD_BCFD_NEW_SIREN_CHARLES", Ref = "OISS_SSA_VEHAUD_BCFD_NEW_SOUNDSET"}, --168 --[[169]] { Name = "New BCFD DAVID", String = "OISS_SSA_VEHAUD_BCFD_NEW_SIREN_DAVID", Ref = "OISS_SSA_VEHAUD_BCFD_NEW_SOUNDSET"}, --169 --[[170]] { Name = "New BCFD EDWARD", String = "OISS_SSA_VEHAUD_BCFD_NEW_SIREN_EDWARD", Ref = "OISS_SSA_VEHAUD_BCFD_NEW_SOUNDSET"}, --170 --[[171]] { Name = "Old BCFD HORN", String = "OISS_SSA_VEHAUD_BCFD_OLD_HORN", Ref = "OISS_SSA_VEHAUD_BCFD_OLD_SOUNDSET"}, --171 --[[172]] { Name = "Old BCFD ADAM", String = "OISS_SSA_VEHAUD_BCFD_OLD_SIREN_ADAM", Ref = "OISS_SSA_VEHAUD_BCFD_OLD_SOUNDSET"}, --172 --[[173]] { Name = "Old BCFD BOY", String = "OISS_SSA_VEHAUD_BCFD_OLD_SIREN_BOY", Ref = "OISS_SSA_VEHAUD_BCFD_OLD_SOUNDSET"}, --173 --[[174]] { Name = "Old BCFD CHARLES", String = "OISS_SSA_VEHAUD_BCFD_OLD_SIREN_CHARLES", Ref = "OISS_SSA_VEHAUD_BCFD_OLD_SOUNDSET"}, --174 --[[175]] { Name = "Old BCFD DAVID", String = "OISS_SSA_VEHAUD_BCFD_OLD_SIREN_DAVID", Ref = "OISS_SSA_VEHAUD_BCFD_OLD_SOUNDSET"}, --175 --[[176]] { Name = "Old BCFD EDWARD", String = "OISS_SSA_VEHAUD_BCFD_OLD_SIREN_EDWARD", Ref = "OISS_SSA_VEHAUD_BCFD_OLD_SOUNDSET"} ``` -------------------------------- ### Define LSCOFD Siren Sounds Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Server-Sided-Audio-Integration This snippet defines sound configurations for LSCOFD (Los Santos County Fire Department) vehicles. It includes mappings for both new and old siren types, specifying unique names, string identifiers, and reference strings for each sound set. ```Lua --[[157]] { Name = "New LSCOFD DAVID", String = "OISS_SSA_VEHAUD_LSCOFD_NEW_SIREN_DAVID", Ref = "OISS_SSA_VEHAUD_LSCOFD_NEW_SOUNDSET"}, --157 --[[158]] { Name = "New LSCOFD EDWARD", String = "OISS_SSA_VEHAUD_LSCOFD_NEW_SIREN_EDWARD", Ref = "OISS_SSA_VEHAUD_LSCOFD_NEW_SOUNDSET"}, --158 --[[159]] { Name = "Old LSCOFD HORN", String = "OISS_SSA_VEHAUD_LSCOFD_OLD_HORN", Ref = "OISS_SSA_VEHAUD_LSCOFD_OLD_SOUNDSET"}, --159 --[[160]] { Name = "Old LSCOFD ADAM", String = "OISS_SSA_VEHAUD_LSCOFD_OLD_SIREN_ADAM", Ref = "OISS_SSA_VEHAUD_LSCOFD_OLD_SOUNDSET"}, --160 --[[161]] { Name = "Old LSCOFD BOY", String = "OISS_SSA_VEHAUD_LSCOFD_OLD_SIREN_BOY", Ref = "OISS_SSA_VEHAUD_LSCOFD_OLD_SOUNDSET"}, --161 --[[162]] { Name = "Old LSCOFD CHARLES", String = "OISS_SSA_VEHAUD_LSCOFD_OLD_SIREN_CHARLES", Ref = "OISS_SSA_VEHAUD_LSCOFD_OLD_SOUNDSET"}, --162 --[[163]] { Name = "Old LSCOFD DAVID", String = "OISS_SSA_VEHAUD_LSCOFD_OLD_SIREN_DAVID", Ref = "OISS_SSA_VEHAUD_LSCOFD_OLD_SOUNDSET"}, --163 --[[164]] { Name = "Old LSCOFD EDWARD", String = "OISS_SSA_VEHAUD_LSCOFD_OLD_SIREN_EDWARD", Ref = "OISS_SSA_VEHAUD_LSCOFD_OLD_SOUNDSET"} ``` -------------------------------- ### Lua Extra Add/Remove Configuration Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Extra-Integrations-Previous-Versions Shows how to configure extras to be added or removed on a trigger, with the behavior reversing when the trigger is no longer active. Supports single or multiple extras. ```lua -- Single Example: Brake = { add = 1, remove = 2 } -- Multiple Example: Brake = { add = { 1, 3 }, remove = { 2, 4 } } ``` -------------------------------- ### Define Misc. David Sound Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Server-Sided-Audio-Integration Defines the sound properties for the 'Misc. DAVID' sound, including its string identifier and soundset reference. This is for miscellaneous sound effects. ```lua --[[216]] { Name = "Misc. DAVID", String = "OISS_SSA_VEHAUD_ETC_DAVID", Ref = "OISS_SSA_VEHAUD_ETC_SOUNDSET"}, --216 ``` -------------------------------- ### Define Misc. Frank Sound Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Server-Sided-Audio-Integration Defines the sound properties for the 'Misc. FRANK' sound, including its string identifier and soundset reference. This is for miscellaneous sound effects. ```lua --[[218]] { Name = "Misc. FRANK", String = "OISS_SSA_VEHAUD_ETC_FRANK", Ref = "OISS_SSA_VEHAUD_ETC_SOUNDSET"}, --218 ``` -------------------------------- ### Configure Add and Remove Extras (Lua) Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Extra-Controls Demonstrates how to configure extras to be added or removed upon key press. Pressing the control again reverses the action, removing added extras and adding removed ones. ```lua Brake = { add = 1, remove = 2 } ``` ```lua Brake = { add = { 1, 3 }, remove = { 2, 4 } } ``` -------------------------------- ### Define Misc. Adam Sound Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Server-Sided-Audio-Integration Defines the sound properties for the 'Misc. ADAM' sound, including its string identifier and soundset reference. This is for miscellaneous sound effects. ```lua --[[213]] { Name = "Misc. ADAM", String = "OISS_SSA_VEHAUD_ETC_ADAM", Ref = "OISS_SSA_VEHAUD_ETC_SOUNDSET"}, --213 ``` -------------------------------- ### Define SanFire Siren Sounds Source: https://github.com/trevorbarns/luxart-vehicle-control/wiki/Server-Sided-Audio-Integration This snippet defines sound configurations for SanFire vehicles. It includes mappings for both new and old siren types, specifying unique names, string identifiers, and reference strings for each sound set. ```Lua --[[177]] { Name = "New SanFire HORN", String = "OISS_SSA_VEHAUD_SANFIRE_NEW_HORN", Ref = "OISS_SSA_VEHAUD_SANFIRE_NEW_SOUNDSET"}, --177 --[[178]] { Name = "New SanFire ADAM", String = "OISS_SSA_VEHAUD_SANFIRE_NEW_SIREN_ADAM", Ref = "OISS_SSA_VEHAUD_SANFIRE_NEW_SOUNDSET"}, --178 --[[179]] { Name = "New SanFire BOY", String = "OISS_SSA_VEHAUD_SANFIRE_NEW_SIREN_BOY", Ref = "OISS_SSA_VEHAUD_SANFIRE_NEW_SOUNDSET"}, --179 --[[180]] { Name = "New SanFire CHARLES", String = "OISS_SSA_VEHAUD_SANFIRE_NEW_SIREN_CHARLES", Ref = "OISS_SSA_VEHAUD_SANFIRE_NEW_SOUNDSET"}, --180 --[[181]] { Name = "New SanFire DAVID", String = "OISS_SSA_VEHAUD_SANFIRE_NEW_SIREN_DAVID", Ref = "OISS_SSA_VEHAUD_SANFIRE_NEW_SOUNDSET"}, --181 --[[182]] { Name = "New SanFire EDWARD", String = "OISS_SSA_VEHAUD_SANFIRE_NEW_SIREN_EDWARD", Ref = "OISS_SSA_VEHAUD_SANFIRE_NEW_SOUNDSET"}, --182 --[[183]] { Name = "Old SanFire HORN", String = "OISS_SSA_VEHAUD_SANFIRE_OLD_HORN", Ref = "OISS_SSA_VEHAUD_SANFIRE_OLD_SOUNDSET"}, --183 --[[184]] { Name = "Old SanFire ADAM", String = "OISS_SSA_VEHAUD_SANFIRE_OLD_SIREN_ADAM", Ref = "OISS_SSA_VEHAUD_SANFIRE_OLD_SOUNDSET"}, --184 --[[185]] { Name = "Old SanFire BOY", String = "OISS_SSA_VEHAUD_SANFIRE_OLD_SIREN_BOY", Ref = "OISS_SSA_VEHAUD_SANFIRE_OLD_SOUNDSET"}, --185 --[[186]] { Name = "Old SanFire CHARLES", String = "OISS_SSA_VEHAUD_SANFIRE_OLD_SIREN_CHARLES", Ref = "OISS_SSA_VEHAUD_SANFIRE_OLD_SOUNDSET"}, --186 --[[187]] { Name = "Old SanFire DAVID", String = "OISS_SSA_VEHAUD_SANFIRE_OLD_SIREN_DAVID", Ref = "OISS_SSA_VEHAUD_SANFIRE_OLD_SOUNDSET"} ```