PedClient

getPedResetFlag

GET_PED_RESET_FLAG0xAF9E59B1B1FBF2A0

The GTA V native GET_PED_RESET_FLAG of the PED namespace, as LS:MP client scripts call it: the global function getPedResetFlag, in JavaScript and in Lua.

SignatureJavaScript
getPedResetFlag(ped: Ped, flagId: number): boolean
SignatureLua
getPedResetFlag(ped: Ped, flagId: integer): boolean

Usage

JavaScript
const result = getPedResetFlag(ped, flagId);
Lua
local result = getPedResetFlag(ped, flagId)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
flagIdintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Reference

Namespace
Ped PED
In the game
BOOL GET_PED_RESET_FLAG(Ped ped, int flagId)
Hash
0xAF9E59B1B1FBF2A0

Open in the interactive natives reference