# PED::GET_PED_CONFIG_FLAG

- **Hash:** `0x7EE53118C892B513`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `GetPedConfigFlag`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/GET_PED_CONFIG_FLAG

## Signature

```c
BOOL GET_PED_CONFIG_FLAG(Ped ped, int flagId, BOOL p2);
```

## Parameters

- `ped` (`Ped`)
- `flagId` (`int`)
- `p2` (`BOOL`)

## Returns

`BOOL`

## Description

flagId: see SET_PED_CONFIG_FLAG

## Usage

### Lua

```lua
local retval = GetPedConfigFlag(ped, flagId, p2)

-- always available, by hash
local retval = Citizen.InvokeNative(0x7EE53118C892B513, ped, flagId, p2, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = GetPedConfigFlag(ped, flagId, p2);

// by hash
const retval = Citizen.invokeNative('0x7EE53118C892B513', ped, flagId, p2, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x7EE53118C892B513, ped, flagId, p2);
```

## Related enums

- [ePedScriptConfigFlags](https://natives.borderlinerp.com/enums/ePedScriptConfigFlags.md) — 603 values

## See also

- [PED::SET_PED_CONFIG_FLAG](https://natives.borderlinerp.com/natives/PED/SET_PED_CONFIG_FLAG.md)

*Sources: alloc8or RDR3 NativeDB.*
