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.
This commit is contained in:
ASTROWwwW
2026-07-27 00:25:14 +02:00
parent ca597cf6f4
commit 477b71384f
+1 -1
View File
@@ -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)