From 6ecf10c084217716009be55baf58ac56f422a0fa Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Fri, 11 Jul 2025 21:16:45 +0100 Subject: [PATCH] fix inventory config loading if vector4 is present --- frameworkCache.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/frameworkCache.lua b/frameworkCache.lua index 783ed03..172d892 100644 --- a/frameworkCache.lua +++ b/frameworkCache.lua @@ -320,12 +320,19 @@ local function getInventoryConfig(resource, data) if not content then return nil, "Failed to load file" end local env = { - GetConvar = GetConvar, vector3 = vector3, Citizen = Citizen, - GetResourceState = GetResourceState, exports = exports, - DependencyCheck = DependencyCheck or function() return nil end, + GetConvar = GetConvar, + vector3 = vector3, + vector4 = vector4, + Citizen = Citizen, + GetResourceState = GetResourceState, + exports = exports, + DependencyCheck = function() return nil end, } local fn, err = load(content, '@'..data.file, 't', env) + --local success, err = xpcall(fn, function(e) + -- print(debug.traceback("Error while executing qs-inventory config:\n" .. tostring(e), 2)) + --end) if not fn then return nil, "Failed to compile config: " .. err end if not pcall(fn) then return nil, "Error executing config file" end