I saw this on his code
RegisterCommand('testall', function()
exports['4EV3R-Notify']:ShowNotification("Success Notify", "This is a Success Message!", 5000, "success", "notify.mp3")
Citizen.Wait(1000)
exports['4EV3R-Notify']:ShowNotification("Error Notify", "This is an Error Message!", 5000, "error", "notify.mp3")
Citizen.Wait(1000)
exports['4EV3R-Notify']:ShowNotification("Info Notify", "This is an Info Message!", 5000, "info", "notify.mp3")
Citizen.Wait(1000)
exports['4EV3R-Notify']:ShowCircularProgress(5000)
Citizen.Wait(6000)
exports['4EV3R-Notify']:ShowButtons({
{ label = "Accept", value = "accept" },
{ label = "Decline", value = "decline" }
}, function(selection)
print("You selected: " .. selection)
if value ~= "accept" then
print("do something")
end
end)
end, false)
RegisterCommand('testsuccess', function()
exports['4EV3R-Notify']:ShowNotification("Success Notify", "This is a Success Message!", 5000, "success", "notify.mp3")
end, false)
RegisterCommand('testerror', function()
exports['4EV3R-Notify']:ShowNotification("Error Notify", "This is an Error Message!", 5000, "error", "notify.mp3")
end, false)
RegisterCommand('testinfo', function()
exports['4EV3R-Notify']:ShowNotification("Info Notify", "This is an Info Message!", 5000, "info", "notify.mp3")
end, false)
RegisterCommand('testprogress', function()
exports['4EV3R-Notify']:ShowCircularProgress(10000)
end, false)
RegisterCommand('testbuttons', function()
exports['4EV3R-Notify']:ShowButtons({
{ label = "Accept", value = "accept" },
{ label = "Decline", value = "decline" }
}, function(selection)
print("You selected: " .. selection)
if value ~= "accept" then
print("example")
end
end)
end, false)