mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-16 21:46:03 +01:00
feat(client/peds): option to hide blip on range
This commit is contained in:
@@ -146,9 +146,16 @@ function NDCore.createAiPed(info)
|
|||||||
Wait(500)
|
Wait(500)
|
||||||
ox_target:addLocalEntity({ped}, options)
|
ox_target:addLocalEntity({ped}, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if blip and blipInfo and blipInfo.showWhenNear and DoesBlipExist(blip) then
|
||||||
|
SetBlipAlpha(blip, 255)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function point:onExit()
|
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 ped and DoesEntityExist(ped) then
|
||||||
if target and options then
|
if target and options then
|
||||||
ox_target:removeLocalEntity({ped})
|
ox_target:removeLocalEntity({ped})
|
||||||
|
|||||||
Reference in New Issue
Block a user