Files
esx_core/[esx]/esx_notify/Notify.lua
T
2022-07-05 13:58:56 +02:00

14 lines
411 B
Lua

---@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",
length = length or 3000,
message = message or "ESX-Notify"
}))
end
exports('Notify', Notify)
RegisterNetEvent("ESX:Notify", Notify)