mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
feat(resource): load callbacks
Load lib.callback for internal use.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
lib = setmetatable({
|
||||
name = 'ox_lib'
|
||||
name = 'ox_lib',
|
||||
context = IsDuplicityVersion() and 'server' or 'client',
|
||||
}, {
|
||||
__newindex = function(self, name, fn)
|
||||
exports(name, fn)
|
||||
@@ -7,6 +8,10 @@ lib = setmetatable({
|
||||
end
|
||||
})
|
||||
|
||||
cache = {
|
||||
resource = lib.name
|
||||
}
|
||||
|
||||
if not LoadResourceFile(lib.name, 'web/build/index.html') then
|
||||
error('Unable to load UI. Build ox_lib or download the latest release.\n ^3https://github.com/overextended/ox_lib/releases/latest/download/ox_lib.zip^0')
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user