Update Notify.lua

This commit is contained in:
xorzo
2022-07-05 13:58:56 +02:00
committed by GitHub
parent c0175429d8
commit f9547ba3e9
+3 -3
View File
@@ -1,3 +1,6 @@
---@param type string the notification type
---@param length number the length of the notification
---@param message any the message :D
local function Notify(type, length, message)
SendNuiMessage(json.encode({
type = type or "info",
@@ -6,8 +9,5 @@ local function Notify(type, length, message)
}))
end
exports('Notify', Notify)
RegisterNetEvent("ESX:Notify", Notify)