mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-14 17:23:55 +00:00
feat(keys): implement a DisableControlAction wrapper
This commit is contained in:
1 parent
d25cac3be4
commit
ec1a98b83a
3 files changed
+57
-12
No files matched your search
@@ -32,16 +32,7 @@ local function loadFile(self, file)
|
||||
error(('\n^1Error importing module (%s): %s^0'):format(dir, err), 3)
|
||||
else
|
||||
rawset(self, file, chunk())
|
||||
return setmetatable(self[file], {
|
||||
__index = {
|
||||
name = file,
|
||||
resource = LIBRARY
|
||||
},
|
||||
|
||||
__newindex = function()
|
||||
error('Cannot add indexes to imports')
|
||||
end
|
||||
})
|
||||
return self[file]
|
||||
end
|
||||
else error(('\n^3Unable to import module (%s)^0'):format(dir), 3) end
|
||||
end
|
||||
@@ -84,7 +75,7 @@ setmetatable(lib, {
|
||||
_ENV.lib = lib
|
||||
|
||||
--- Dream of a world where this PR gets accepted.
|
||||
--- ```lua
|
||||
--- ```
|
||||
--- SetInterval(callback: function, timer: number)
|
||||
--- ```
|
||||
SetInterval = setmetatable({currentId = 0}, {
|
||||
|
||||
Reference in new issue
Block a user