Merge pull request #25 from rex2630/patch-1

Updated SQL to weight
This commit is contained in:
rex2630
2020-01-19 17:10:24 +01:00
committed by GitHub
6 changed files with 23 additions and 23 deletions
+4 -4
View File
@@ -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)
;
+4 -4
View File
@@ -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)
;
+4 -4
View File
@@ -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)
;
+4 -4
View File
@@ -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)
;
+4 -4
View File
@@ -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
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'}}})