> For the complete documentation index, see [llms.txt](https://nw-docs.gitbook.io/newway.docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nw-docs.gitbook.io/newway.docs/reference/gta/infraction-system.md).

# Infraction System

## **Protecting the integrity of the game experience is crucial. This menu empowers you to identify and flag players engaging in unfair or disruptive behavior.**

### **Here's a detailed guide to using the infraction system:**

**Available Infractions:**

* **TRIGGERED\_ANTICHEAT:** Player has triggered the anticheat system.
* **TRIED\_CRASH\_PLAYER:** Player attempted to crash another player's game.
* **TRIED\_KICK\_PLAYER:** Player tried to kick another player from the session.
* **ATTACKING\_WITH\_GODMODE:** Player attacked while using godmode.
* **ATTACKING\_WITH\_INVISIBILITY:** Player attacked while invisible.
* **ATTACKING\_WHEN\_HIDDEN\_FROM\_PLAYER\_LIST:** Player attacked while hidden from the player list.
* **SPOOFED\_DATA:** Player has spoofed data.
* **SPOOFED\_HOST\_TOKEN:** Player has spoofed the host token.
* **INVALID\_PLAYER\_MODEL:** Player is using an invalid player model.
* **SUPER\_JUMP:** Player has demonstrated an abnormal jump capability.
* **UNDEAD\_OTR:** Player is in an undead state.
* **CUSTOM\_REASON:** Allows for specifying a personalized reason for flagging a player.

### **Flagging a Player:**

1. Utilize the `network.flag_player_as_modder()` function.
2. Provide the player's index and the desired infraction type as parameters.
3. For custom reasons, include an additional string detailing the justification.

**Example:**

```lua
network.flag_player_as_modder(player_index, infraction.CUSTOM_REASON, "I have my reason")
```
