# CFX::IS_PRINCIPAL_ACE_ALLOWED

- **Hash:** `0x37CF52CE`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `IsPrincipalAceAllowed`
- **Side:** shared (Cfx runtime native)
- **Name status:** official
- **Documentation:** named only
- **URL:** https://natives.borderlinerp.com/natives/CFX/IS_PRINCIPAL_ACE_ALLOWED

## Signature

```c
BOOL IS_PRINCIPAL_ACE_ALLOWED(char* principal, char* object);
```

## Parameters

- `principal` (`char*`)
- `object` (`char*`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = IsPrincipalAceAllowed(principal, object)

-- always available, by hash
local retval = Citizen.InvokeNative(0x37cf52ce, principal, object, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = IsPrincipalAceAllowed(principal, object);

// by hash
const retval = Citizen.invokeNative('0x37cf52ce', principal, object, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x37cf52ce, principal, object);
```

*Sources: Cfx.re native reference.*
