TrevorBarns / luxart-vehicle-control

A siren / (non-els) emergency lights controller for FiveM.
https://www.luxartengineering.com/
GNU General Public License v3.0
135 stars 56 forks source link

Script error when attempting to open the storage management menu. #63

Closed ghost closed 1 year ago

ghost commented 2 years ago

I'm unable to open the storage menu. When I do, it throws an error in console, then the plugin stops responding to my hotkeys.

The error is as follows: SCRIPT ERROR: @lvc/UI/cl_ragemenu.lua:509: attempt to concatenate a boolean value

image

We're using the latest release version of lvc (3.2.8) on ESX

TrevorBarns commented 2 years ago

Please attach your SIRENS.lua. Can you also enable debug mode: /lvcdebug and post a screenshot of the log print-out.

Seems like your profile is not found and no DEFAULT table is set in SIREN_ASSIGNMENT table.

This is for the main resource storage menu and not a plugin menu correct?

randomentity93 commented 2 years ago

Hi Trevor,

This is correct. As far as I am aware, we have left SIRENS.lua alone, except for where we added some vehicles to the table, So unless we missed something there?

EIther case, here is what we got:

`--[[

LUXART VEHICLE CONTROL V3 (FOR FIVEM)

Coded by Lt.Caine ELS Clicks by Faction Additions by TrevorBarns

FILE: SIRENS.lua PURPOSE: Associate specific sirens with specific vehicles. Siren assignments.

SIREN TONE TABLE: ID- Generic Name (SIREN STRING) [vehicles.awc name] 1 - Airhorn (SIRENS_AIRHORN) [AIRHORN_EQD] 2 - Wail (VEHICLES_HORNS_SIREN_1) [SIREN_PA20A_WAIL] 3 - Yelp (VEHICLES_HORNS_SIREN_2) [SIREN_2] 4 - Priority (VEHICLES_HORNS_POLICE_WARNING) [POLICE_WARNING] 5 - CustomA (RESIDENT_VEHICLES_SIREN_WAIL_01) [SIREN_WAIL_01] 6 - CustomB (RESIDENT_VEHICLES_SIREN_WAIL_02) [SIREN_WAIL_02] 7 - CustomC (RESIDENT_VEHICLES_SIREN_WAIL_03) [SIREN_WAIL_03] 8 - CustomD (RESIDENT_VEHICLES_SIREN_QUICK_01) [SIREN_QUICK_01] 9 - CustomE (RESIDENT_VEHICLES_SIREN_QUICK_02) [SIREN_QUICK_02] 10 - CustomF (RESIDENT_VEHICLES_SIREN_QUICK_03) [SIREN_QUICK_03] 11 - Powercall (VEHICLES_HORNS_AMBULANCE_WARNING) [AMBULANCE_WARNING] 12 - FireHorn (VEHICLES_HORNS_FIRETRUCK_WARNING) [FIRE_TRUCK_HORN] 13 - Firesiren (RESIDENT_VEHICLES_SIREN_FIRETRUCK_WAIL_01) [SIREN_FIRETRUCK_WAIL_01] 14 - Firesiren2 (RESIDENT_VEHICLES_SIREN_FIRETRUCK_QUICK_01) [SIREN_FIRETRUCK_QUICK_01] ]] -- CHANGE SIREN NAMES, AUDIONAME, AUDIOREF 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 = 'CustomA', String = 'RESIDENT_VEHICLES_SIREN_WAIL_01', Ref = 0 }, --5 --[[6]] { Name = 'CustomB', String = 'RESIDENT_VEHICLES_SIREN_WAIL_02', Ref = 0 }, --6 --[[7]] { Name = 'CustomC', String = 'RESIDENT_VEHICLES_SIREN_WAIL_03', Ref = 0 }, --7 --[[8]] { Name = 'CustomD', String = 'RESIDENT_VEHICLES_SIREN_QUICK_01', Ref = 0 }, --8 --[[9]] { Name = 'CustomE', String = 'RESIDENT_VEHICLES_SIREN_QUICK_02', Ref = 0 }, --9 --[[10]] { Name = 'CustomF', String = 'RESIDENT_VEHICLES_SIREN_QUICK_03', Ref = 0 }, --10 --[[11]] { Name = 'Powercall', String = 'VEHICLES_HORNS_AMBULANCE_WARNING', Ref = 0 }, --11 --[[12]] { Name = 'Fire Horn', 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 Wail', String = 'RESIDENT_VEHICLES_SIREN_FIRETRUCK_QUICK_01', Ref = 0 }, --14 }

--ASSIGN SIRENS TO VEHICLES SIREN_ASSIGNMENTS = { --[''] = {tones}, ['ranger'] = { 1, 2, 3, 4 }, ['tassant'] = { 1, 2, 3, 4 }, ['vfss'] = { 1, 2, 3, 4 }, ['hwpvfss'] = { 1, 2, 3, 4 }, ['xr8'] = { 1, 2, 3, 4 }, ['trhawk'] = { 1, 2, 3, 4 }, ['umsrt'] = { 1, 2, 3, 4 }, ['FIRETRUK'] = { 12, 13, 14, 11 }, ['AMBULAN'] = { 1, 2, 3, 4, 11 }, ['LGUARD'] = { 1, 2, 3, 4, 11 }, }`

TrevorBarns commented 2 years ago

⚠️ The default or fallback key ['DEFAULT'] should always be present and never removed. Doing so will result in issues.

https://github.com/TrevorBarns/luxart-vehicle-control/wiki/Setup-&-Configuration#configure-siren_assignments-table-sirenslua

randomentity93 commented 2 years ago

That fixed it, Thankyou. Found out it wasn't me that changed it either. Made sure that won't happen again. Thanks again!