Hello, so i want to change the default paycheck notification because its ugly and it ruins with the position of my map, and because okokNotify is just beautiful.
So if there are any advanced people that can help me with this resource i’ll be very grateful
Regards, Zgodovina
In the original thread of okokNotify there’s a literal tutorial on how to implement it to ESX.
1 Like
I inserted the code into paycheck.lua
but the notification still shows as normal notification…
but still i dont know if i did it right,
Thanks for your time.
Regards, Zgodovina
1 Like
It shows as normal notification
TriggerClientEvent('esx:showAdvancedNotification', xPlayer.source, _U('bank'), _U('received_paycheck'), _U('received_help', salary),
see “esx:showAdvancedNotification” its just normal notification
TriggerClientEvent('okokNotify:Alert', source, "title", "Message", Time, 'type')
I want to insert this code into the paycheck notification, i just dont know how
# Client side
exports['okokNotify']:Alert("Title", "Message", Time, 'type')
# Server side
TriggerClientEvent('okokNotify:Alert', source, "Title", "Message", Time, 'type')
[Time] - 1000 = 1 second | 5000 = 5 seconds
Types:
- success (green)
- info (blue)
- warning (yellow)
- error (red)
- phone (orange)
- neutral (grey)
How to add new colors:
1. Open styles.css and add the following to the last line.
/* Example Notification */
.example-icon::before {
font-family: "Font Awesome 5 Free";
content: "\f11c";
color: #color_code;
}
.example {
background-color: rgba(20, 20, 20, 0.85);
color: #color_code;
padding: 5px 5px 5px 5px;
}
.example-border {
border-left: 4px solid #color_code;
1 Like
ShahZaM
October 22, 2021, 11:38pm
6
You have to replace the original ESX code where it shows a notification…
(my bad also, I said it was said in the original thread but I got confused with other thread)
TriggerClientEvent('okokNotify:Alert', source, "title", "Message", Time, 'type')
, just replace the params.
Hello good afternoon, have you managed to change? It’s just that I haven’t managed it yet and I would also like to change.
1 Like
Kass33
December 18, 2021, 7:10pm
8
TriggerClientEvent(‘okokNotify:Alert’, xPlayer.source, “Bank”, _U(‘received_help’, salary), 5000, ‘info’)
2 Likes