small fix, should resolve FL-Notify
This commit is contained in:
1 parent
5205962c32
commit
d02be6eaa5
1 file changed
+1
-2
@@ -16,7 +16,6 @@ end
|
|||||||
---@return nil
|
---@return nil
|
||||||
Notify.SendNotify = function(message, _type, time)
|
Notify.SendNotify = function(message, _type, time)
|
||||||
time = time or 3000
|
time = time or 3000
|
||||||
|
|
||||||
if _type == "error" or _type == "info" then
|
if _type == "error" or _type == "info" then
|
||||||
_type = tostring(1)
|
_type = tostring(1)
|
||||||
elseif _type == "success" then
|
elseif _type == "success" then
|
||||||
@@ -24,7 +23,7 @@ Notify.SendNotify = function(message, _type, time)
|
|||||||
elseif _type == "warning" or _type == "warn" then
|
elseif _type == "warning" or _type == "warn" then
|
||||||
_type = tostring(3)
|
_type = tostring(3)
|
||||||
end
|
end
|
||||||
return TriggerEvent("fl:notify", "Notification", "", message, time, _type, 0)
|
return exports['FL-Notify']:Notify("Notification", "", message, 5000, tonumber(_type), 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
return Notify
|
return Notify
|
||||||
Reference in new issue
Block a user