Fixed statement

This commit is contained in:
ElPumpo
2019-10-29 20:45:50 +01:00
parent a2daba053d
commit a35a3b8b84
+2 -2
View File
@@ -56,9 +56,9 @@ AddEventHandler('esx_drugs:pickedUpCannabis', function()
local xPlayer = ESX.GetPlayerFromId(source)
if xPlayer.canCarryItem('cannabis', 1) then
xPlayer.showNotification(_U('weed_inventoryfull'))
else
xPlayer.addInventoryItem('cannabis', 1)
else
xPlayer.showNotification(_U('weed_inventoryfull'))
end
end)