RedM Natives

SET_PED_CONFIG_FLAG

Hash0x1913FE4CBF41C463
Runtime nameSetPedConfigFlag
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x1913FE4CBF41C463

Signature

void SET_PED_CONFIG_FLAG(Ped ped, int flagId, BOOL value);

Parameters

NameTypeDescription
pedPed—
flagIdint—
valueBOOL—

Returns void

Description

flagId: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePedScriptConfigFlags
https://alloc8or.re/rdr3/doc/enums/ePedScriptConfigFlags.txt
https://github.com/femga/rdr3_discoveries/tree/master/AI/CPED_CONFIG_FLAGS

Usage

Lua
SetPedConfigFlag(ped, flagId, value)

-- always works, by hash
Citizen.InvokeNative(0x1913FE4CBF41C463, ped, flagId, value)
JavaScript and C#
JavaScript
SetPedConfigFlag(ped, flagId, value);

// by hash
Citizen.invokeNative('0x1913FE4CBF41C463', ped, flagId, value);
C#
Function.Call((Hash)0x1913FE4CBF41C463, ped, flagId, value);

Enums and flags

See also

Sources

alloc8or RDR3 NativeDB

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