PedClient

setPedFleeAttributes

SET_PED_FLEE_ATTRIBUTES0x70A2D1137C8ED7C9

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

SignatureJavaScript
setPedFleeAttributes(ped: Ped, attributeFlags: number, enable: boolean): void
SignatureLua
setPedFleeAttributes(ped: Ped, attributeFlags: integer, enable: boolean)

Usage

JavaScript
setPedFleeAttributes(ped, attributeFlags, enable);
Lua
setPedFleeAttributes(ped, attributeFlags, enable)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
attributeFlagsintnumberinteger
enableBOOLbooleanboolean

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

Open in the interactive natives reference