mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01: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:
8
resource/main.lua
Normal file
8
resource/main.lua
Normal file
@@ -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