Try this first:
Replace:
ESX.ShowNotification('Your company now has ' .. money .. ' $')
With:
TriggerClientEvent('esx:showNotification', xPlayer.source, 'Your company now has .. money .. ' $')
Otherwise, if the above does not work try:
Adding a function for the notifications at the bottom of client.lua (You do need Pnotify script for this for this)
function sendNotification(xSource, message, messageType, messageTimeout)
TriggerClientEvent("pNotify:SendNotification", xSource, {
text = message,
type = messageType,
queue = "bossmoney1",
timeout = messageTimeout,
layout = "bottomCenter"
})
end
Then replace this:
ESX.ShowNotification('Your company now has ' .. money .. ' $')
With this:
TriggerClientEvent('pNotify:SendNotification', xSource, 'Your company now has ' .. money .. ' $')
If this does not work, please send me your discord, and i’ll help you, we will later post it here on the forum if we find fix.