mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
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.
9 lines
225 B
Lua
9 lines
225 B
Lua
-- Creates exports from values assigned to lib
|
|
-- Hacky workaround for Lua Language Server support
|
|
--- Alias for `exports['pe-lualib']`
|
|
|
|
lib = setmetatable({}, {
|
|
__newindex = function(_, name, fn)
|
|
exports(name, fn)
|
|
end
|
|
}) |