mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-19 02:28:33 +00:00
feat: add lib table for exports
Anything assigned to the table will be exported; it's just a hacky way to provide support for Lua Language Server.
This commit is contained in:
1 parent
7c41ac5d6e
commit
52a3623e0e
2 files changed
+10
No files matched your search
@@ -0,0 +1,8 @@
|
||||
-- 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
|
||||
})
|
||||
Reference in new issue
Block a user