5 credits

OkOkNotify [STANDALONE]

13 replies2,637 views1y ago
Original post · 1y ago#1
[HEADING=2]PREVIEW :[/HEADING] [img]/public/images/logo.png[/img] [HEADING=2][/HEADING] [HEADING=2]NO DEPENDENCIES[/HEADING] [HEADING=2][/HEADING] [HEADING=2]EXPORTS :[/HEADING] CLIENT SIDE
exports['okokNotify']:Alert('Title', 'Message', Time, 'type', playSound)
SERVER SIDE
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. [HEADING=2]SNIPPETS :[/HEADING] [HEADING=2][/HEADING] [HEADING=2]ESX[/HEADING] On es_extended/client/functions.lua replace the function ESX.ShowNotification with the following one:
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
[HEADING=2]QBCore[/HEADING] On qb-core/client/functions.lua replace the function QBCore.Functions.Notify with the following one:
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
[HEADING=1][/HEADING] [HEADING=1]Be careful, I haven't personally tested this script, so I don't know if it works 100%.[/HEADING] [HEADING=1]Also, the leak didn't come from me! ⚠️[/HEADING]

Download

Unlock costs 5 + 1 tax credits. Like the post and leave a reply to unlock it.

13 replies

1y ago#2
nice video my friend yes?
0
1y ago#3
militodr, post: 374665, member: 61909

[HEADING=2]PREVIEW :[/HEADING]

[img]/public/images/logo.png[/img]

[HEADING=2][/HEADING]
[HEADING=2]NO DEPENDENCIES[/HEADING]

[HEADING=2][/HEADING]
[HEADING=2]EXPORTS :[/HEADING]

CLIENT SIDE

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



SERVER SIDE

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.


[HEADING=2]SNIPPETS :[/HEADING]
[HEADING=2][/HEADING]
[HEADING=2]ESX[/HEADING]
On es_extended/client/functions.lua replace the function ESX.ShowNotification with the following one:

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


[HEADING=2]QBCore[/HEADING]
On qb-core/client/functions.lua replace the function QBCore.Functions.Notify with the following one:

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=-
[HEADING=1][/HEADING]
[HEADING=1]Be careful, I haven't personally tested this script, so I don't know if it works 100%.[/HEADING]
[HEADING=1]Also, the leak didn't come from me! ⚠️[/HEADING]

everyone have this notification lol
0
1y ago#4
Thanks for this scipt i will test it soon
0
1y ago#5
nice script thank you so much
0
1y ago#6
[HEADING=2]n i c e o n e[/HEADING]
0
1y ago#7
How can you move the box its showing behind my job hud
0
1y ago#8
nice leak is it working
0
1y ago#9
i will test soon. It is working?
0
1y ago#10
thnaks for sharing i will use it
0
1y ago#11
militodr, post: 374665, member: 61909

[HEADING=2]PREVIEW :[/HEADING]

[img]/public/images/logo.png[/img]

[HEADING=2][/HEADING]
[HEADING=2]NO DEPENDENCIES[/HEADING]

[HEADING=2][/HEADING]
[HEADING=2]EXPORTS :[/HEADING]

CLIENT SIDE

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



SERVER SIDE

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.


[HEADING=2]SNIPPETS :[/HEADING]
[HEADING=2][/HEADING]
[HEADING=2]ESX[/HEADING]
On es_extended/client/functions.lua replace the function ESX.ShowNotification with the following one:

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


[HEADING=2]QBCore[/HEADING]
On qb-core/client/functions.lua replace the function QBCore.Functions.Notify with the following one:

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=-
[HEADING=1][/HEADING]
[HEADING=1]Be careful, I haven't personally tested this script, so I don't know if it works 100%.[/HEADING]
[HEADING=1]Also, the leak didn't come from me! ⚠️[/HEADING]

Niceee, il try it !
0
6mo ago#12
thanks very nice scripts !!!
0
6mo ago#13
thanks very nice scripts !!!
0

Sign in to reply

Join the discussion — it takes less than a minute.