What's new

Guide okokNotify - How to display notify?

Zan1456

Zan#1456
VIP
Joined
Mar 19, 2021
Messages
787
Solutions
5
Reaction score
78,614
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
664
Points
306
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
146
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
1
Reaction score
0
Points
96
Location
toronto
its not working for me how do I get it to run a custom notification
 
Top