kylemcshea / dream-postal

📦GoPostal Job for FiveM: Made for QB & ESX. Integrated with ox_target & qb-target for a premium gameplay experience. Elevate your server now! 🚀
https://www.youtube.com/watch?v=fSwJO3C85E0
52 stars 11 forks source link

Add notification to when user gets compensated #1

Closed kylemcshea closed 10 months ago

kylemcshea commented 10 months ago

add this to server side on payment function

    TriggerClientEvent('dream-postal:client:notifyPlayer', source,
        'You have been paid $' .. compensation .. ' for your delivery.', 'success')

and then this code on client side

RegisterNetEvent('dream-postal:client:notifyPlayer', function(message, type, duration)
    NotifyPlayer(message, type, duration)
end)