mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
refactor(init): export cache and update intervals
BREAKING CHANGE: lib will store cached export functions and no longer uses the : syntax to call functions. Allow SetInterval to return arguments to the callback function.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
-- Creates exports from values assigned to lib
|
||||
-- Hacky workaround for Lua Language Server support
|
||||
|
||||
--- Alias for `exports['pe-lualib']`
|
||||
|
||||
lib = setmetatable({}, {
|
||||
__newindex = function(self, name, fn)
|
||||
__newindex = function(_, name, fn)
|
||||
exports(name, fn)
|
||||
end
|
||||
})
|
||||
Reference in New Issue
Block a user