OkOkNotify [STANDALONE]

posted 04-12-2024 02:05 1.511 views 10 replies 5 Credits
militodr
0 Posts
1,235 Credits
N/A Since
#1 1.511 views 10 replies

PREVIEW :



NO DEPENDENCIES

EXPORTS :

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.

SNIPPETS :

ESX

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

QBCore

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

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! ⚠️

replies (10)
tropadobem
10 Posts
24 Credits
Dec 2024 Since
#1
nice video my friend yes?
gredelj_3003
148 Posts
52 Credits
May 2024 Since
#2

militodr,

PREVIEW :








NO DEPENDENCIES




...


everyone have this notification lol[/okoknotify]
_tuo_padre
76 Posts
2,871 Credits
Jun 2024 Since
#3
Thanks for this scipt i will test it soon
kimaki__
453 Posts
99 Credits
Nov 2024 Since
#4
nice script thank you so much
zerodeatsh1
34 Posts
56 Credits
Nov 2023 Since
#5

n i c e o n e

daddy_diesel
7 Posts
81 Credits
Nov 2023 Since
#6
How can you move the box its showing behind my job hud
akiya
280 Posts
37 Credits
Dec 2024 Since
#7
nice leak is it working
constpr.19
52 Posts
148 Credits
May 2025 Since
#8
i will test soon. It is working?
Lactee
67 Posts
57 Credits
Mar 2024 Since
#9
thnaks for sharing i will use it
DonCamy
11 Posts
79 Credits
Jan 2024 Since
#10

militodr,

PREVIEW :








NO DEPENDENCIES




...


Niceee, il try it ![/okoknotify]

You must be logged in to reply

Login Register