feat: standardize notifications and get rid of chat messages

This commit is contained in:
0xDEMXN
2022-02-18 12:00:01 +01:00
parent 084dc23e50
commit 1edf290943
4 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ end)
ESX.RegisterCommand('heal', 'admin', function(xPlayer, args, showError)
args.playerId.triggerEvent('esx_basicneeds:healPlayer')
args.playerId.triggerEvent('chat:addMessage', {args = {'^5HEAL', 'You have been healed.'}})
args.playerId.showNotification('You have been healed.')
end, true, {help = 'Heal a player, or yourself - restores thirst, hunger and health.', validate = true, arguments = {
{name = 'playerId', help = 'the player id', type = 'player'}
}})