mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +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)
|
||||
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})
|
||||
|
||||
Reference in New Issue
Block a user