Merge pull request #4 from pixinc/patch-1

Fix SellWeed
This commit is contained in:
Jérémie N'gadi
2017-08-17 18:04:51 +02:00
committed by GitHub
+2 -2
View File
@@ -490,7 +490,7 @@ local function SellWeed(source)
if poochQuantity == 0 then
TriggerClientEvent('esx:showNotification', source, _U('no_pouches_sale'))
else
xPlayer:removeInventoryItem('weed_pooch', 1)
xPlayer.removeInventoryItem('weed_pooch', 1)
if CopsConnected == 0 then
xPlayer.addAccountMoney('black_money', 108)
TriggerClientEvent('esx:showNotification', source, _U('sold_one_weed'))
@@ -558,4 +558,4 @@ ESX.RegisterUsableItem('weed', function(source)
TriggerClientEvent('esx_drugs:onPot', _source)
TriggerClientEvent('esx:showNotification', _source, _U('used_one_weed'))
end)
end)