Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Manason committed Sep 28, 2023
1 parent 273d95f commit 96cb48d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion client/player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand Down
3 changes: 0 additions & 3 deletions client/vehicle.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 96cb48d

Please sign in to comment.