Skip to content

Commit

Permalink
fix: it's args not targetVehicle
Browse files Browse the repository at this point in the history
  • Loading branch information
TonybynMp4 authored Feb 28, 2024
1 parent 6a29e2e commit 0ebfd63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,15 @@ local function openVehCatsMenu(category, targetVehicle)
end

--- Opens a menu with list of vehicle categories
---@param targetVehicle number
local function openVehicleCategoryMenu(targetVehicle)
---@param args table<string, any>
local function openVehicleCategoryMenu(args)
local categoryMenu = {}
for k, v in pairs(config.shops[insideShop].categories) do
categoryMenu[#categoryMenu + 1] = {
title = v,
arrow = true,
onSelect = function()
openVehCatsMenu(k, targetVehicle)
openVehCatsMenu(k, args.targetVehicle)
end
}
end
Expand Down

0 comments on commit 0ebfd63

Please sign in to comment.