mirror of
https://github.com/jimathy/jim-consumables.git
synced 2026-08-16 22:16:02 +01:00
ox lib notify support - Config.Notify = "ox"
This commit is contained in:
@@ -51,6 +51,9 @@ function triggerNotify(title, message, type, src)
|
||||
elseif Config.Notify == "rr" then
|
||||
if not src then exports.rr_uilib:Notify({msg = message, type = type, style = "dark", duration = 6000, position = "top-right", })
|
||||
else TriggerClientEvent("rr_uilib:Notify", src, {msg = message, type = type, style = "dark", duration = 6000, position = "top-right", }) end
|
||||
elseif Config.Notify == "ox" then
|
||||
if not src then exports.ox_lib:notify({title = title, description = message, type = type or "success"})
|
||||
else exports.ox_lib:notify({title = title, description = message, type = type or "success"}) end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user