• VIP Lifetime 20 euro this weekend! 25 % off everything: VIP and Credits!

    Its the holiday month, therefor VIP and Credits have been reduced in price!
    VIP does not need any credits to unlock content and download it.
    Payments via Crypto: Please open a ticket, if you experience any issues, or if you miss your coin as an option in the list we have alot of wallets available.

STANDALONE OkOkNotify [STANDALONE] (1 Viewer)

militodr

New member
Oct 31, 2023
3
1
3
Credits
332

PREVIEW :



NO DEPENDENCIES


EXPORTS :


CLIENT SIDE

Code:
exports['okokNotify']:Alert('Title', 'Message', Time, 'type', playSound)


SERVER SIDE

Code:
TriggerClientEvent('okokNotify:Alert', source, 'Title', 'Message', Time, 'type', playSound)


TIME FOR THE NOTIFY


1000 = 1 second.
2000 = 2 second.
3000 = 3 second.
.....



Make sure your server artifacts version is above the 5181.


SNIPPETS :

ESX​

On es_extended/client/functions.lua replace the function ESX.ShowNotification with the following one:

Code:
function ESX.ShowNotification(message, type, length)
    if GetResourceState('okokNotify') ~= 'missing' then
        if type == 'error' then
            exports['okokNotify']:Alert("Error", message, 5000, 'error')
        elseif type == 'inform' then
            exports['okokNotify']:Alert("Info", message, 5000, 'info')
        elseif type == 'success' then
            exports['okokNotify']:Alert("Success", message, 5000, 'success')
        elseif type == 'warning' then
            exports['okokNotify']:Alert("Warning", message, 5000, 'warning')
        else
            exports['okokNotify']:Alert("Info", message, 5000, 'info')
        end
    else
        print('[okokNotify]: ERROR: okokNotify resource not FOUND or not STARTED!')
    end
end

QBCore​

On qb-core/client/functions.lua replace the function QBCore.Functions.Notify with the following one:

Code:
function QBCore.Functions.Notify(text, textype, length)
    if textype == 'primary' then textype = 'info' end
    local ttype = textype ~= nil and textype or "info"
    local length = length ~= nil and length or 5000
    exports['okokNotify']:Alert("", text, length, ttype)
end





Be careful, I haven't personally tested this script, so I don't know if it works 100%.​

Also, the leak didn't come from me! ⚠️

 

gredelj_3003

Active member
May 18, 2024
161
12
18
Credits
75

PREVIEW :



NO DEPENDENCIES


EXPORTS :


CLIENT SIDE

Code:
exports['okokNotify']:Alert('Title', 'Message', Time, 'type', playSound)


SERVER SIDE

Code:
TriggerClientEvent('okokNotify:Alert', source, 'Title', 'Message', Time, 'type', playSound)


TIME FOR THE NOTIFY


1000 = 1 second.
2000 = 2 second.
3000 = 3 second.
.....



Make sure your server artifacts version is above the 5181.


SNIPPETS :

ESX​

On es_extended/client/functions.lua replace the function ESX.ShowNotification with the following one:

Code:
function ESX.ShowNotification(message, type, length)
    if GetResourceState('okokNotify') ~= 'missing' then
        if type == 'error' then
            exports['okokNotify']:Alert("Error", message, 5000, 'error')
        elseif type == 'inform' then
            exports['okokNotify']:Alert("Info", message, 5000, 'info')
        elseif type == 'success' then
            exports['okokNotify']:Alert("Success", message, 5000, 'success')
        elseif type == 'warning' then
            exports['okokNotify']:Alert("Warning", message, 5000, 'warning')
        else
            exports['okokNotify']:Alert("Info", message, 5000, 'info')
        end
    else
        print('[okokNotify]: ERROR: okokNotify resource not FOUND or not STARTED!')
    end
end

QBCore​

On qb-core/client/functions.lua replace the function QBCore.Functions.Notify with the following one:

Code:
function QBCore.Functions.Notify(text, textype, length)
    if textype == 'primary' then textype = 'info' end
    local ttype = textype ~= nil and textype or "info"
    local length = length ~= nil and length or 5000
    exports['okokNotify']:Alert("", text, length, ttype)
end




-=Stripped Content=-

Be careful, I haven't personally tested this script, so I don't know if it works 100%.​

Also, the leak didn't come from me! ⚠️

everyone have this notification lol
 

Users who are viewing this thread

Top