Skip to content

Commit

Permalink
Fixed statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ElPumpo committed Oct 29, 2019
1 parent a2daba0 commit a35a3b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit a35a3b8

Please sign in to comment.