mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-22 02:58:33 +00: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 parent
6b3af6f0d9
commit
d0c5f722db
4 files changed
+65
-45
No files matched your search
+2
-2
@@ -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