From d46d0733fa46bb0d588400820a21edc9824bca71 Mon Sep 17 00:00:00 2001 From: Andyyy7666 <86536434+Andyyy7666@users.noreply.github.com> Date: Sat, 2 Dec 2023 16:07:40 +0100 Subject: [PATCH] feat(client/peds): option to hide blip on range --- client/peds.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/peds.lua b/client/peds.lua index 2601c72..4ecc0fb 100644 --- a/client/peds.lua +++ b/client/peds.lua @@ -146,9 +146,16 @@ function NDCore.createAiPed(info) Wait(500) ox_target:addLocalEntity({ped}, options) end + + if blip and blipInfo and blipInfo.showWhenNear and DoesBlipExist(blip) then + SetBlipAlpha(blip, 255) + end end function point:onExit() + if blip and blipInfo and blipInfo.showWhenNear and DoesBlipExist(blip) then + SetBlipAlpha(blip, 0) + end if ped and DoesEntityExist(ped) then if target and options then ox_target:removeLocalEntity({ped})