mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-02 19:28:52 +00:00
+4
-4
@@ -1,6 +1,6 @@
|
||||
USE `essentialmode`;
|
||||
|
||||
INSERT INTO `items` (`name`, `label`, `limit`) VALUES
|
||||
('bread', 'Pain', 10),
|
||||
('water', 'Eau', 5)
|
||||
;
|
||||
INSERT INTO `items` (`name`, `label`, `weight`) VALUES
|
||||
('bread', 'Pain', 1),
|
||||
('water', 'Eau', 1)
|
||||
;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
USE `essentialmode`;
|
||||
|
||||
INSERT INTO `items` (`name`, `label`, `limit`) VALUES
|
||||
('bread', 'Brot', 10),
|
||||
('water', 'Wasser', 5)
|
||||
;
|
||||
INSERT INTO `items` (`name`, `label`, `weight`) VALUES
|
||||
('bread', 'Brot', 1),
|
||||
('water', 'Wasser', 1)
|
||||
;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
USE `essentialmode`;
|
||||
|
||||
INSERT INTO `items` (`name`, `label`, `limit`) VALUES
|
||||
('bread', 'Leipä', 10),
|
||||
('water', 'Vesi', 5)
|
||||
;
|
||||
INSERT INTO `items` (`name`, `label`, `weight`) VALUES
|
||||
('bread', 'Leipä', 1),
|
||||
('water', 'Vesi', 1)
|
||||
;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
USE `essentialmode`;
|
||||
|
||||
INSERT INTO `items` (`name`, `label`, `limit`) VALUES
|
||||
('bread', 'Chleb', 10),
|
||||
('water', 'Woda', 5)
|
||||
;
|
||||
INSERT INTO `items` (`name`, `label`, `weight`) VALUES
|
||||
('bread', 'Chleb', 1),
|
||||
('water', 'Woda', 1)
|
||||
;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
USE `essentialmode`;
|
||||
|
||||
INSERT INTO `items` (`name`, `label`, `limit`) VALUES
|
||||
('bread', 'Bröd', 10),
|
||||
('water', 'Vatten', 5)
|
||||
;
|
||||
INSERT INTO `items` (`name`, `label`, `weight`) VALUES
|
||||
('bread', 'Bröd', 1),
|
||||
('water', 'Vatten', 1)
|
||||
;
|
||||
|
||||
+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