This is very simple but useful resource for sending important warning notifications to your server's players.
It is nothing special, but still very useful.
How to use:
- SERVER SIDE - TriggerClientEvent('id_warningnotification:notify', source, message, duration)
- CLIENT SIDE - TriggerEvent('id_warningnotification:notify', message, duration)
- duration must be in milliseconds (1 second = 1000 milliseconds)
Example of usage:
- SERVER SIDE - TriggerClientEvent('id_warningnotification:notify', xPlayer.source, 'Test notification server side', 5000)
- CLIENT SIDE - TriggerEvent('id_warningnotification:notify', 'Test notification client side', 5000)