notify _type
This commit is contained in:
1 parent
50f822bf20
commit
5b0e7074fe
4 files changed
+6
-3
No files matched your search
@@ -15,7 +15,8 @@ end
|
||||
---@return nil
|
||||
Notify.SendNotify = function(message, _type, time)
|
||||
time = time or 3000
|
||||
return exports['mythic_notify']:SendAlert('inform', message, time)
|
||||
_type = _type or "inform"
|
||||
return exports['mythic_notify']:SendAlert(_type, message, time)
|
||||
end
|
||||
|
||||
return Notify
|
||||
@@ -16,7 +16,7 @@ end
|
||||
---@return nil
|
||||
Notify.SendNotify = function(message, _type, time)
|
||||
time = time or 3000
|
||||
return exports.ox_lib:notify({ description = message, type = _type, position = 'center-left' })
|
||||
return exports.ox_lib:notify({ description = message, type = _type, duration = time, position = 'top-right' })
|
||||
end
|
||||
|
||||
return Notify
|
||||
@@ -15,7 +15,8 @@ end
|
||||
---@return nil
|
||||
Notify.SendNotify = function(message, _type, time)
|
||||
time = time or 3000
|
||||
return exports['t-notify']:Alert({ style = 'info', message = message, duration = time, })
|
||||
_type = _type or "info"
|
||||
return exports['t-notify']:Alert({ style = _type, message = message, duration = time, })
|
||||
end
|
||||
|
||||
return Notify
|
||||
@@ -15,6 +15,7 @@ end
|
||||
---@return nil
|
||||
Notify.SendNotify = function(message, _type, time)
|
||||
time = time or 3000
|
||||
_type = _type or "info"
|
||||
return exports.wasabi_notify:notify(_type, message, time, _type)
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user