# PED::SET_PED_AS_COP

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

## Signature

```c
void SET_PED_AS_COP(Ped ped, BOOL toggle);
```

## Parameters

- `ped` (`Ped`)
- `toggle` (`BOOL`)

## Returns

`void`

## Description

Turns the desired ped into a cop. If you use this on the player ped, you will become almost invisible to cops dispatched for you. You will also report your own crimes, get a generic cop voice, get a cop-vision-cone on the radar, and you will be unable to shoot at other cops. Toggling ped as "false" has no effect; you must change p0's ped model to disable the effect.
toggle = bSetRelGroup

## Usage

### Lua

```lua
SetPedAsCop(ped, toggle)

-- always available, by hash
Citizen.InvokeNative(0xBB03C38DD3FB7FFD, ped, toggle)
```

### JavaScript

```js
SetPedAsCop(ped, toggle);

// by hash
Citizen.invokeNative('0xBB03C38DD3FB7FFD', ped, toggle);
```

### C#

```csharp
Function.Call((Hash)0xBB03C38DD3FB7FFD, ped, toggle);
```

*Sources: alloc8or RDR3 NativeDB.*
