HUDClient

setPedHasAiBlip

SET_PED_HAS_AI_BLIP0xD30C50DF888D58B5

The 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.

SignatureJavaScript
setPedHasAiBlip(ped: Ped, hasCone: boolean): void
SignatureLua
setPedHasAiBlip(ped: Ped, hasCone: boolean)

Usage

JavaScript
setPedHasAiBlip(ped, hasCone);
Lua
setPedHasAiBlip(ped, hasCone)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
hasConeBOOLbooleanboolean

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

Open in the interactive natives reference