From a35a3b8b8486005a025dc306df1b5256d974d480 Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Tue, 29 Oct 2019 20:45:50 +0100 Subject: [PATCH] Fixed statement --- server/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/main.lua b/server/main.lua index 6a6fc240..7edbbf2a 100644 --- a/server/main.lua +++ b/server/main.lua @@ -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)