Major script improvements, see desc

- Moved zone to avoid problems with existing objects in the area
- Removed possiblity to repair, clean & more from inside vehicles, and made sure only one action can be performed at the time
- Added missing locale
- General code improvements
This commit is contained in:
ElPumpo
2018-07-08 22:11:53 +02:00
parent 7e2eabada6
commit 8e0320be7a
8 changed files with 129 additions and 113 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ AddEventHandler('esx_mecanojob:stopHarvest', function()
local _source = source
PlayersHarvesting[_source] = false
end)
------------ Récupération Outils Réparation --------------
local function Harvest2(source)
SetTimeout(4000, function()
@@ -317,7 +317,7 @@ AddEventHandler('esx_mecanojob:putStockItems', function(itemName, count)
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('invalid_quantity'))
end
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('you_added') .. count .. ' ' .. item.label)
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('have_deposited', count, item.label))
end)