Files
ox_lib/resource/main.lua
Linden ed7bf536e8 feat(resource): load callbacks
Load lib.callback for internal use.
2022-09-14 00:52:10 +10:00

18 lines
451 B
Lua

lib = setmetatable({
name = 'ox_lib',
context = IsDuplicityVersion() and 'server' or 'client',
}, {
__newindex = function(self, name, fn)
exports(name, fn)
rawset(self, name, fn)
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