Fixed exploit taking more than you can carry, closes #134

This commit is contained in:
ElPumpo
2018-07-17 21:46:28 +02:00
parent 6144990abf
commit 14507e97b2
2 changed files with 22 additions and 20 deletions
+6 -4
View File
@@ -1146,9 +1146,10 @@ function OpenGetStocksMenu()
else
menu2.close()
menu.close()
OpenGetStocksMenu()
TriggerServerEvent('esx_policejob:getStockItem', itemName, count)
Citizen.Wait(300)
OpenGetStocksMenu()
end
end,
@@ -1208,9 +1209,10 @@ function OpenPutStocksMenu()
else
menu2.close()
menu.close()
OpenPutStocksMenu()
TriggerServerEvent('esx_policejob:putStockItems', itemName, count)
Citizen.Wait(300)
OpenPutStocksMenu()
end
end,