ox lib notify support - Config.Notify = "ox"

This commit is contained in:
Jim Shield
2023-02-21 17:20:20 +00:00
committed by GitHub
parent c10860f788
commit e7d9946532

View File

@@ -51,6 +51,9 @@ function triggerNotify(title, message, type, src)
elseif Config.Notify == "rr" then elseif Config.Notify == "rr" then
if not src then exports.rr_uilib:Notify({msg = message, type = type, style = "dark", duration = 6000, position = "top-right", }) 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 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
end end