From 96cb48de87921fed1db20a001c201386095b7a0c Mon Sep 17 00:00:00 2001 From: Manason Date: Thu, 28 Sep 2023 07:47:54 -0700 Subject: [PATCH] fix: lint errors --- client/player.lua | 2 +- client/vehicle.lua | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/client/player.lua b/client/player.lua index c16f3cd..a440754 100644 --- a/client/player.lua +++ b/client/player.lua @@ -248,7 +248,7 @@ lib.registerMenu({ local Input = lib.inputDialog(selectedPlayer.name, {Lang:t('player_options.administration.inputkick')}) if not Input then lib.showMenu('qb_adminmenu_player_administration_menu', MenuIndexes.qb_adminmenu_player_administration_menu) return end if not Input[1] then return end TriggerServerEvent('qb-admin:server:playeradministration', selected, selectedPlayer, Input[1]) - lib.showMenu('qb_adminmenu_player_administration_menu', qb_adminmenu_player_administration_menu) + lib.showMenu('qb_adminmenu_player_administration_menu', MenuIndexes.qb_adminmenu_player_administration_menu) elseif selected == 2 then local Input = lib.inputDialog(selectedPlayer.name, { { type = 'input', label = Lang:t('player_options.administration.inputkick'), placeholder = 'VDM'}, diff --git a/client/vehicle.lua b/client/vehicle.lua index 762eeac..fb45457 100644 --- a/client/vehicle.lua +++ b/client/vehicle.lua @@ -1,5 +1,4 @@ local coreVehicles = exports.qbx_core:GetVehiclesByName() -local vehicles = {} function GenerateVehiclesSpawnMenu() local canUseMenu = lib.callback.await('qb-admin:server:canUseMenu', false) if not canUseMenu then @@ -28,7 +27,6 @@ function GenerateVehiclesSpawnMenu() end) for i = 1, #categories do - vehicles[categories[i]] = {} lib.setMenuOptions('qb_adminmenu_spawn_vehicles_menu', {label = categories[i], args = {('qb_adminmenu_spawn_vehicles_menu_%s'):format(categories[i])}}, i) lib.registerMenu({ @@ -75,7 +73,6 @@ function GenerateVehiclesSpawnMenu() for i = 1, #vehs do local v = coreVehicles[vehs[i]] - vehicles[v.category][vehs[i]] = v lib.setMenuOptions(('qb_adminmenu_spawn_vehicles_menu_%s'):format(v.category), {label = v.name, args = {v.model}}, indexedCategories[v.category]) indexedCategories[v.category] += 1 end