-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Issue: Players will use vehicles with missile lock on (for example Buzzard) to scan for spawned peds, as they seem to be made targetable vs world gen peds.
This applies to peds spawned by pedmanager. The issue that arises from this is that:
- Peds can be accidentally targeted if someone is using a vehicle-homing missile, giving false positives
- Peds that are meant to be "secret" can be easily found by players flying around in a vehicle with homing missiles until the tracking notification is triggered
Solution:
Add a config option that marks a ped as "hidden" that applies this flag:
SetPedConfigFlag(entity, 434, true)
434 is:
CPED_CONFIG_FLAG_DisableHomingMissileLockon = 434,
https://docs.fivem.net/natives/?_0x9CFBE10D
Additional suggestion (more niche use):
https://docs.fivem.net/natives/?_0x63F58F7C80513AAD
Applying this native can make the ped untargetable even through combat, reducing risk of fighting/targeting spawned peds
Metadata
Metadata
Assignees
Labels
No labels