RedM Natives

SET_PED_FLEE_ATTRIBUTES

Hash0x70A2D1137C8ED7C9
Runtime nameSetPedFleeAttributes
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x70A2D1137C8ED7C9

Signature

void SET_PED_FLEE_ATTRIBUTES(Ped ped, int attributeFlags, BOOL enable);

Parameters

NameTypeDescription
pedPed—
attributeFlagsint—
enableBOOL—

Returns void

Description

https://github.com/femga/rdr3_discoveries/tree/master/AI/FLEE_ATTRIBUTES

attributeFlags:
enum eFleeAttribute
{
	FA_FORCE_EXIT_VEHICLE = (1 << 16),
	FA_DISABLE_MOUNT_USAGE = (1 << 20),
	FA_DISABLE_ENTER_VEHICLES = (1 << 22),
};

Usage

Lua
SetPedFleeAttributes(ped, attributeFlags, enable)

-- always works, by hash
Citizen.InvokeNative(0x70A2D1137C8ED7C9, ped, attributeFlags, enable)
JavaScript and C#
JavaScript
SetPedFleeAttributes(ped, attributeFlags, enable);

// by hash
Citizen.invokeNative('0x70A2D1137C8ED7C9', ped, attributeFlags, enable);
C#
Function.Call((Hash)0x70A2D1137C8ED7C9, ped, attributeFlags, enable);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.