From 0ebfd63c7bf3c0993de167f49c99c70d388a5fde Mon Sep 17 00:00:00 2001 From: Antony <97451137+TonybynMp4@users.noreply.github.com> Date: Wed, 28 Feb 2024 06:54:41 +0100 Subject: [PATCH] fix: it's args not targetVehicle --- client/main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/main.lua b/client/main.lua index 7231756..54a1ba3 100644 --- a/client/main.lua +++ b/client/main.lua @@ -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 +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