Updated to newest ESX

This commit is contained in:
rex2630
2020-01-06 15:56:35 +01:00
committed by GitHub
parent 37474d5d75
commit 04d3a6162f
+3 -3
View File
@@ -9,7 +9,7 @@ ESX.RegisterUsableItem('bread', function(source)
TriggerClientEvent('esx_status:add', source, 'hunger', 200000)
TriggerClientEvent('esx_basicneeds:onEat', source)
TriggerClientEvent('esx:showNotification', source, _U('used_bread'))
xPlayer.showNotification(_U('used_bread'))
end)
ESX.RegisterUsableItem('water', function(source)
@@ -19,7 +19,7 @@ ESX.RegisterUsableItem('water', function(source)
TriggerClientEvent('esx_status:add', source, 'thirst', 200000)
TriggerClientEvent('esx_basicneeds:onDrink', source)
TriggerClientEvent('esx:showNotification', source, _U('used_water'))
xPlayer.showNotification(_U('used_water'))
end)
TriggerEvent('es:addGroupCommand', 'heal', 'admin', function(source, args, user)
@@ -46,4 +46,4 @@ TriggerEvent('es:addGroupCommand', 'heal', 'admin', function(source, args, user)
end
end, function(source, args, user)
TriggerClientEvent('chat:addMessage', source, { args = { '^1SYSTEM', 'Insufficient Permissions.' } })
end, {help = 'Heal a player, or yourself - restores thirst, hunger and health.', params = {{name = 'playerId', help = '(optional) player id'}}})
end, {help = 'Heal a player, or yourself - restores thirst, hunger and health.', params = {{name = 'playerId', help = '(optional) player id'}}})