RedM Natives

SET_PED_RESET_FLAG

Known values: This is the server-side RPC native equivalent of the client native SET_PED_RESET_FLAG.

Hash0xCFF6FF66
Runtime nameSetPedResetFlag
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

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

Parameters

NameTypeDescription
pedPed—
flagIdint—
doResetBOOL—

Returns void

Description

Cfx.re native reference

PED::SET_PED_RESET_FLAG(PLAYER::PLAYER_PED_ID(), 240, 1); Known values:

This is the server-side RPC native equivalent of the client native SET_PED_RESET_FLAG.

Usage

Lua
SetPedResetFlag(ped, flagId, doReset)

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

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

Sources

Cfx.re native reference

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