mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-03 11:48:53 +00:00
Fixed statement
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user