Remove cache and batch event libraries, update locales
Deleted the cache and batch event libraries from the codebase, including all related client, server, and shared files. Removed server-side particle library and associated client event handlers. Updated utility and clothing modules to remove cache dependencies. Improved utility logging and deprecated point functions with notices. Updated all locales to use a consistent 'PurchasedItem' message format and added Bulgarian (bg) translation. Bumped version to 0.13.1 in fxmanifest.
This commit is contained in:
1 parent
5fd0744ca5
commit
48f8122197
76 files changed
+488
-875
No files matched your search
@@ -8,6 +8,25 @@ Notify.GetResourceName = function()
|
||||
return resourceName
|
||||
end
|
||||
|
||||
|
||||
local Language = Language or Require("modules/locales/shared.lua")
|
||||
local locale = Language.Locale
|
||||
local placeHolderText = locale("Notifications.PlaceholderTitle")
|
||||
|
||||
Notify.SendNotify = function(message, _type, time)
|
||||
time = time or 3000
|
||||
if _type == "error" or _type == "info" then
|
||||
_type = tostring(1)
|
||||
elseif _type == "success" then
|
||||
_type = tostring(2)
|
||||
elseif _type == "warning" or _type == "warn" then
|
||||
_type = tostring(3)
|
||||
else
|
||||
_type = tostring(2) -- Default to 2 if type is not recognized
|
||||
end
|
||||
return exports['FL-Notify']:Notify("Notification", "", message, 5000, tonumber(_type), 0)
|
||||
end
|
||||
|
||||
---This will send a notify message of the type and time passed
|
||||
---@param title string
|
||||
---@param message string
|
||||
@@ -17,7 +36,7 @@ end
|
||||
---@return nil
|
||||
Notify.SendNotification = function(title, message, _type, time, props)
|
||||
time = time or 3000
|
||||
if not title then title = Bridge.Language.Locale("Notifications.PlaceholderTitle") end
|
||||
if not title then title = placeHolderText end
|
||||
if _type == "error" or _type == "info" then
|
||||
_type = tostring(1)
|
||||
elseif _type == "success" then
|
||||
|
||||
Reference in new issue
Block a user