Skip to content

Commit

Permalink
Update main.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
ElPumpo committed Jan 15, 2020
1 parent 7120de4 commit 3c5a76e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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]))
Expand Down

0 comments on commit 3c5a76e

Please sign in to comment.