mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
Anything assigned to the table will be exported; it's just a hacky way to provide support for Lua Language Server.
8 lines
205 B
Lua
8 lines
205 B
Lua
-- Creates exports from values assigned to lib.
|
|
-- Hacky workaround for Lua Language Server support.
|
|
|
|
lib = setmetatable({}, {
|
|
__newindex = function(self, name, fn)
|
|
exports(name, fn)
|
|
end
|
|
}) |