mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
fix(init): set correct chunk name
Used in debugging and errors.
This commit is contained in:
2
init.lua
2
init.lua
@@ -40,7 +40,7 @@ local function loadModule(self, module)
|
||||
end
|
||||
|
||||
if chunk then
|
||||
local fn, err = load(chunk, ('@@ox_lib/%s/%s.lua'):format(module, context))
|
||||
local fn, err = load(chunk, ('@@ox_lib/imports/%s/%s.lua'):format(module, context))
|
||||
|
||||
if not fn or err then
|
||||
return error(('\n^1Error importing module (%s): %s^0'):format(dir, err), 3)
|
||||
|
||||
Reference in New Issue
Block a user