From 3c5a76eaff446dfe0c4eaed90daa9d1320a69b1d Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Wed, 15 Jan 2020 21:50:48 +0100 Subject: [PATCH] Update main.lua --- server/main.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/main.lua b/server/main.lua index 26c13db..49b9d9b 100644 --- a/server/main.lua +++ b/server/main.lua @@ -38,7 +38,7 @@ ESX.RegisterServerCallback('esx_drugs:buyLicense', function(source, cb, licenseN if license then if xPlayer.getMoney() >= license.price then xPlayer.removeMoney(license.price) - + TriggerEvent('esx_license:addLicense', source, licenseName, function() cb(true) end) @@ -80,16 +80,16 @@ AddEventHandler('esx_drugs:processCannabis', function() if xPlayer.canSwapItem('cannabis', 3, 'marijuana', 1) then xPlayer.removeInventoryItem('cannabis', 3) xPlayer.addInventoryItem('marijuana', 1) - + xPlayer.showNotification(_U('weed_processed')) else xPlayer.showNotification(_U('weed_processingfull')) - playersProcessingCannabis[_source] = nil end else xPlayer.showNotification(_U('weed_processingenough')) - playersProcessingCannabis[_source] = nil end + + playersProcessingCannabis[_source] = nil end) else print(('esx_drugs: %s attempted to exploit weed processing!'):format(GetPlayerIdentifiers(source)[1]))