# LAW::_HAS_PLAYER_BEEN_FOUND_BY_LAW_ACTIVE_SEARCH

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

## Signature

```c
BOOL _HAS_PLAYER_BEEN_FOUND_BY_LAW_ACTIVE_SEARCH(Player player);
```

## Parameters

- `player` (`Player`)

## Returns

`BOOL`

## Description

*Source: alloc8or RDR3 NativeDB*

Reported to return true when law active search finds the player for the first time. Returns false when the player evades or dies.
Requires _SET_LAW_REGION for law to become aware of crimes.

*Source: VORPCORE RDR3natives*

returns true when law finds player after searching for player for the first time , false when player evades or dies.Note: must use SET_LAW_REGION for law to get aware of crimes.

## Usage

### Lua

```lua
local retval = HasPlayerBeenFoundByLawActiveSearch(player)

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

### JavaScript

```js
const retval = HasPlayerBeenFoundByLawActiveSearch(player);

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

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x9945A3E2528A02E8, player);
```

- 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, VORPCORE RDR3natives.*
