setPedFleeAttributes
SET_PED_FLEE_ATTRIBUTES0x70A2D1137C8ED7C9The GTA V native SET_PED_FLEE_ATTRIBUTES of the PED namespace, as LS:MP client scripts call it: the global function setPedFleeAttributes, in JavaScript and in Lua.
setPedFleeAttributes(ped: Ped, attributeFlags: number, enable: boolean): voidsetPedFleeAttributes(ped: Ped, attributeFlags: integer, enable: boolean)Usage
JavaScript
setPedFleeAttributes(ped, attributeFlags, enable);Lua
setPedFleeAttributes(ped, attributeFlags, enable)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
attributeFlags | int | number | integer |
enable | 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.
bit 1 (0x2) = use vehicle
bit 15 (0x8000) = force cower
Reference
- Namespace
- Ped PED
- In the game
void SET_PED_FLEE_ATTRIBUTES(Ped ped, int attributeFlags, BOOL enable)- Hash
0x70A2D1137C8ED7C9