# LAW::_ARE_LAW_PEDS_ENABLED_FOR_TRAIN

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

## Signature

```c
BOOL _ARE_LAW_PEDS_ENABLED_FOR_TRAIN();
```

## Returns

`BOOL`

## Description

Only used in trainrobbery_ambient R* Script

## Usage

### Lua

```lua
local retval = AreLawPedsEnabledForTrain()

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

### JavaScript

```js
const retval = AreLawPedsEnabledForTrain();

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

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0xA22C46F16359471C);
```

- 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.

*Sources: alloc8or RDR3 NativeDB.*
