From 982a0e20e685fab8f908615d37f886e42cd71f46 Mon Sep 17 00:00:00 2001 From: Illusion <163570364+illusi0n003@users.noreply.github.com> Date: Mon, 28 Apr 2025 01:24:06 +0200 Subject: [PATCH] Update client.lua qb-crafting fix --- client.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.lua b/client.lua index 242b8df..0ab0ea9 100644 --- a/client.lua +++ b/client.lua @@ -99,7 +99,7 @@ local function OpenCraftingMenu(benchType) local PlayerData = QBCore.Functions.GetPlayerData() local xpType = benchType == 'item_bench' and Config.item_bench.xpType or Config.attachment_bench.xpType local recipes = benchType == 'item_bench' and Config.item_bench.recipes or Config.attachment_bench.recipes - local currentXP = PlayerData.metadata[xpType] + local currentXP = PlayerData.metadata.rep and PlayerData.metadata.rep[xpType] or 0 QBCore.Functions.TriggerCallback('crafting:getPlayerInventory', function(inventory) local craftableItems = {}