RedM Natives

SET_PED_RESET_FLAG

Needs to be called every frame

Hash0xC1E8A365BF3B29F2
Runtime nameSetPedResetFlag
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xC1E8A365BF3B29F2

Signature

void SET_PED_RESET_FLAG(Ped ped, int flagId, BOOL doReset);

Parameters

NameTypeDescription
pedPed—
flagIdint—
doResetBOOL—

Returns void

Description

Needs to be called every frame

flagid:https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ePedScriptResetFlags
https://github.com/femga/rdr3_discoveries/tree/master/AI/CPED_RESET_FLAGS

Usage

Lua
SetPedResetFlag(ped, flagId, doReset)

-- always works, by hash
Citizen.InvokeNative(0xC1E8A365BF3B29F2, ped, flagId, doReset)
JavaScript and C#
JavaScript
SetPedResetFlag(ped, flagId, doReset);

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

Enums and flags

See also

Sources

alloc8or RDR3 NativeDB

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