new ESX Notification

This commit is contained in:
Benzo
2022-04-26 17:30:17 +02:00
committed by GitHub
parent c9fb366efa
commit de76329b4d
5 changed files with 195 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
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("Notify", Notify)