mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-01 18:58:54 +00:00
Updated to newest ESX
This commit is contained in:
+3
-3
@@ -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'}}})
|
||||
|
||||
Reference in New Issue
Block a user