mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-21 18:48:34 +00:00
refactor(server/locale): get array of valid locales
This commit is contained in:
1 parent
f6b2df0e75
commit
d4b5e0402c
3 files changed
+28
-3
No files matched your search
+4
-2
@@ -1,10 +1,12 @@
|
||||
lib = setmetatable({}, {
|
||||
lib = setmetatable({
|
||||
name = 'ox_lib'
|
||||
}, {
|
||||
__newindex = function(self, name, fn)
|
||||
exports(name, fn)
|
||||
rawset(self, name, fn)
|
||||
end
|
||||
})
|
||||
|
||||
if not LoadResourceFile('ox_lib', 'web/build/index.html') then
|
||||
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