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})