# LAW::_SET_PED_LAW_BEHAVIOUR

- **Hash:** `0x819ADD5EF1742F47`
- **Namespace:** LAW
- **Runtime name (Lua/JS):** `SetPedLawBehaviour`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/LAW/_SET_PED_LAW_BEHAVIOUR

## Signature

```c
void _SET_PED_LAW_BEHAVIOUR(Ped ped, int behaviour);
```

## Parameters

- `ped` (`Ped`)
- `behaviour` (`int`)

## Returns

`void`

## Description

behaviour: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/CLawBehavior__Flags

## Usage

### Lua

```lua
SetPedLawBehaviour(ped, behaviour)

-- always available, by hash
Citizen.InvokeNative(0x819ADD5EF1742F47, ped, behaviour)
```

### JavaScript

```js
SetPedLawBehaviour(ped, behaviour);

// by hash
Citizen.invokeNative('0x819ADD5EF1742F47', ped, behaviour);
```

### C#

```csharp
Function.Call((Hash)0x819ADD5EF1742F47, ped, behaviour);
```

- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

## Related enums

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

*Sources: alloc8or RDR3 NativeDB.*
