diff --git a/client/client.lua b/client/client.lua index 1c317b6..0e60d0c 100644 --- a/client/client.lua +++ b/client/client.lua @@ -31,7 +31,7 @@ function CreateTarget() icon = "fas fa-money-bill-wave", label = "Sell Items", canInteract = function(entity) - if IsPedDeadOrDying(entity, true) or IsPedAPlayer(entity) then return false end + if IsPedDeadOrDying(entity, true) or IsPedAPlayer(entity) or GetPedType(entity) == 28 then return false end return true end, }, @@ -297,4 +297,4 @@ end) AddEventHandler('esx:onPlayerDeath', function(data) if (keepChecking) then CancelSelling() end -end) \ No newline at end of file +end)