From 477b71384fbf8430e73baf32129dd3239d4b98a9 Mon Sep 17 00:00:00 2001 From: ASTROWwwW Date: Mon, 27 Jul 2026 00:25:14 +0200 Subject: [PATCH] fix(esx_lib): load imports from the correct resource name xLib.name was "xLib", which is not a resource, so the import metatable fed it to LoadResourceFile and resolved nothing. It failed silently on Legacy and hard-errored on Enhanced (Resource 'xLib' not found). Point it at the real resource name. --- [core]/esx_lib/resource/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/[core]/esx_lib/resource/init.lua b/[core]/esx_lib/resource/init.lua index b53f05d2..d40c8ee7 100644 --- a/[core]/esx_lib/resource/init.lua +++ b/[core]/esx_lib/resource/init.lua @@ -1,6 +1,6 @@ ---@diagnostic disable: lowercase-global xLib = setmetatable({ - name = 'xLib', + name = 'esx_lib', side = IsDuplicityVersion() and 'server' or 'client' }, { __newindex = function(self, key, fn)