setEntityIsTargetPriority
SET_ENTITY_IS_TARGET_PRIORITY0xEA02E132F5C68722The 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.
setEntityIsTargetPriority(entity: Entity, p1: boolean, p2: number): voidsetEntityIsTargetPriority(entity: Entity, p1: boolean, p2: number)Usage
JavaScript
setEntityIsTargetPriority(entity, p1, p2);Lua
setEntityIsTargetPriority(entity, p1, p2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
p1 | BOOL | boolean | boolean |
p2 | float | number | number |
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