Remove example scripts and update core logic
Deleted all files in the examples directory to clean up unused or test scripts. Updated fxmanifest.lua to enable ox_lib initialization. Improved error handling and entity tracking in utility functions, added prop removal, and made minor localization and code style adjustments throughout the codebase. Significant reword of inventory module, notification module, and framework module. Added support for wasabi_uikit, added support for keep-progressbars,
This commit is contained in:
1 parent
c40a260ea2
commit
343af95794
100 files changed
+2403
-2755
No files matched your search
@@ -25,14 +25,14 @@ function Language.Locale(str, ...)
|
||||
|
||||
-- Handle nested tables via dot notation
|
||||
local current = locales
|
||||
for part in str:gmatch("[^%.]+") do
|
||||
for part in str:gmatch("([^%.]+)") do
|
||||
if type(current) ~= "table" then
|
||||
warn(("Invalid nested locale path: %s"):format(str))
|
||||
warn(("Invalid nested locale path: %s for resource: %s"):format(str, resource))
|
||||
return str
|
||||
end
|
||||
current = current[part]
|
||||
if not current then
|
||||
warn(("Locale not found for key: %s in language: %s"):format(str, Lang))
|
||||
warn(("Locale not found for key: %s in language: %s for resource: %s"):format(str, Lang, resource))
|
||||
return str
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user