mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
feat(commands): add a RegisterCommand wrapper
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
--- Alias for `exports['pe-lualib']`
|
||||
|
||||
lib = setmetatable({}, {
|
||||
__newindex = function(_, name, fn)
|
||||
__newindex = function(self, name, fn)
|
||||
exports(name, fn)
|
||||
rawset(self, name, fn)
|
||||
end
|
||||
})
|
||||
Reference in New Issue
Block a user