EntityClient

setEntityIsTargetPriority

SET_ENTITY_IS_TARGET_PRIORITY0xEA02E132F5C68722

The GTA V native SET_ENTITY_IS_TARGET_PRIORITY of the ENTITY namespace, as LS:MP client scripts call it: the global function setEntityIsTargetPriority, in JavaScript and in Lua.

SignatureJavaScript
setEntityIsTargetPriority(entity: Entity, p1: boolean, p2: number): void
SignatureLua
setEntityIsTargetPriority(entity: Entity, p1: boolean, p2: number)

Usage

JavaScript
setEntityIsTargetPriority(entity, p1, p2);
Lua
setEntityIsTargetPriority(entity, p1, p2)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
p1BOOLbooleanboolean
p2floatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Entity ENTITY
In the game
void SET_ENTITY_IS_TARGET_PRIORITY(Entity entity, BOOL p1, float p2)
Hash
0xEA02E132F5C68722

Open in the interactive natives reference