mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +00:00
Fix SellWeed
xPlayer:removeInventoryItem replaced by xPlayer.removeInventoryItem
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user