Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Guide okokNotify - How to display notify?

Zan1456

Zan#1456
VIP
Joined
Mar 19, 2021
Messages
786
Solutions
5
Reaction score
88,222
Points
421
Location
Hungary
Website
vfivem.com
Client side
Code:
exports['okokNotify']:Alert('Title', 'Message', Time, 'type')

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

Time:
    • 1000 = 1 second.
Types:
    • success (green);
    • info (blue);
    • warning (yellow);
    • error (red);
    • phone (orange);
    • neutral (grey).

Adding new colors/notification types​

Navigate to the config.lua file and just replicate the existing examples.
 

aniket19841

Gold Elite
Joined
Apr 30, 2022
Messages
225
Reaction score
908
Points
316
Location
india
Client side
Code:
exports['okokNotify']:Alert('Title', 'Message', Time, 'type')

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

Time:
    • 1000 = 1 second.
Types:
    • success (green);
    • info (blue);
    • warning (yellow);
    • error (red);
    • phone (orange);
    • neutral (grey).

Adding new colors/notification types​

Navigate to the config.lua file and just replicate the existing examples.
hii
 

resistnce

Member
Joined
Mar 17, 2023
Messages
3
Reaction score
1
Points
156
Location
Indonesia
Client side
Code:
exports['okokNotify']:Alert('Title', 'Message', Time, 'type')

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

Time:
    • 1000 = 1 second.
Types:
    • success (green);
    • info (blue);
    • warning (yellow);
    • error (red);
    • phone (orange);
    • neutral (grey).

Adding new colors/notification types​

Navigate to the config.lua file and just replicate the existing examples.
in which location should I take the client side and server side?
 

andywalker

Silver Elite
Joined
Dec 20, 2022
Messages
19
Reaction score
5
Points
166
Location
Indian
See bro let me tell you find this path : resources/[qb]/qb-core/client in there your will find a function.lua open that lua file and search for notifications exports and change the Notify to okokNotify
 

BBrady

Member
Joined
Apr 12, 2024
Messages
2
Reaction score
0
Points
156
Location
toronto
its not working for me how do I get it to run a custom notification
 

darkfame

Silver Elite
Joined
Aug 8, 2023
Messages
98
Reaction score
24
Points
156
Location
Argentina
client : exports['okokNotify']:Alert("INFO", "¡El Casino ha abierto!", 5000, 'info')
 
Top