From fca2550086280fd69e2e9c2fdc65b48fc3a411bb Mon Sep 17 00:00:00 2001 From: tr1ckz <48994713+tr1ckz@users.noreply.github.com> Date: Fri, 15 Apr 2022 23:19:03 -0400 Subject: [PATCH] Removed ability to sell to wildlife GetPedType(entity) == 28 to remove the ability to sell to animals. --- client/client.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)