# PLAYER::SET_PLAYER_CAN_BE_HASSLED_BY_GANGS

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

## Signature

```c
void SET_PLAYER_CAN_BE_HASSLED_BY_GANGS(Player player, BOOL toggle);
```

## Parameters

- `player` (`Player`)
- `toggle` (`BOOL`)

## Returns

`void`

## Description

Sets whether this player can be hassled by gangs.

## Usage

### Lua

```lua
SetPlayerCanBeHassledByGangs(player, toggle)

-- always available, by hash
Citizen.InvokeNative(0xC7FE774412046825, player, toggle)
```

### JavaScript

```js
SetPlayerCanBeHassledByGangs(player, toggle);

// by hash
Citizen.invokeNative('0xC7FE774412046825', player, toggle);
```

### C#

```csharp
Function.Call((Hash)0xC7FE774412046825, player, toggle);
```

*Sources: alloc8or RDR3 NativeDB.*
