setPedHasAiBlip
SET_PED_HAS_AI_BLIP0xD30C50DF888D58B5The GTA V native SET_PED_HAS_AI_BLIP of the HUD namespace, as LS:MP client scripts call it: the global function setPedHasAiBlip, in JavaScript and in Lua.
setPedHasAiBlip(ped: Ped, hasCone: boolean): voidsetPedHasAiBlip(ped: Ped, hasCone: boolean)Usage
JavaScript
setPedHasAiBlip(ped, hasCone);Lua
setPedHasAiBlip(ped, hasCone)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
hasCone | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
This native turns on the AI blip on the specified ped. It also disappears automatically when the ped is too far or if the ped is dead. You don't need to control it with other natives.
See https://gtaforums.com/topic/884370-native-research-ai-blips for further information.
Reference
- Namespace
- HUD HUD
- In the game
void SET_PED_HAS_AI_BLIP(Ped ped, BOOL hasCone)- Hash
0xD30C50DF888D58B5- Formerly
_SET_PED_ENEMY_AI_BLIP_SET_PED_AI_BLIP