> For the complete documentation index, see [llms.txt](https://gocomedyfunstoredocs.gitbook.io/gocomedyfun-store/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gocomedyfunstoredocs.gitbook.io/gocomedyfun-store/scripts-paid/safe-fun/english/configuration/zonesecuriter.md).

# ZoneSecuriter

#### Safe Zone Configuration

The `Config.Zone_Securiter` parameter allows you to define all the zones on your server where certain player actions will be automatically disabled (shooting, using weapons, jumping, etc.)\
Each zone can be customized with its own name, size, position, rotation, and optional debug display for in-game testing

***

#### Steps to Configure a Safe Zone

**1. Locate the parameter**\
Open the `config.lua` file and find the following table:

```lua
Config.Zone_Securiter = { ... }
```

***

**2. Understand the sub-parameters**

* **Nom** → Custom name for the zone (e.g., "City Hall", "Hospital", "Courthouse")
* **Coordonner** → Center coordinates of the zone (`vec3(x, y, z)`)
* **Taille** → 3D dimensions of the zone:
  * **Largeur** → X axis (left/right)
  * **Profondeur** → Y axis (forward/backward)
  * **Hauteur** → Z axis (up/down)
* **Rotation** → Rotates the zone on the ground (in degrees)
* **Debug** → Enables visual display of the zone in-game for testing (`true` or `false`)

***

#### Basic Example: One Zone

Here's a sample configuration with a **single safe zone**:

```lua
Config.Zone_Securiter = {
    {
        Nom = "City Hall Los Santos",
        Coordonner = vec3(-549.25, -196.63, 36.00),
        Taille = {
            Largeur = 80.0,
            Profondeur = 80.0,
            Hauteur = 100.0
        },
        Rotation = 30,
        Debug = true,
    },
}
```

***

#### Adding Multiple Zones

You can define **as many zones as you want** — there’s no limit\
Each zone must be added inside the `Config.Zone_Securiter` table, separated by a comma

***

**Example with Multiple Zones**

```lua
Config.Zone_Securiter = {
    {
        Nom = "City Hall Los Santos",
        Coordonner = vec3(-549.25, -196.63, 36.00),
        Taille = {
            Largeur = 80.0,
            Profondeur = 80.0,
            Hauteur = 100.0
        },
        Rotation = 30,
        Debug = true,
    },
    {
        Nom = "Pillbox Hospital",
        Coordonner = vec3(298.5, -584.6, 43.3),
        Taille = {
            Largeur = 70.0,
            Profondeur = 70.0,
            Hauteur = 50.0
        },
        Rotation = 0,
        Debug = false,
    },
    {
        Nom = "Courthouse",
        Coordonner = vec3(-525.0, -180.0, 38.0),
        Taille = {
            Largeur = 60.0,
            Profondeur = 60.0,
            Hauteur = 50.0
        },
        Rotation = 0,
        Debug = true,
    }
}
```

***

#### Save and Restart

Once you’ve added or edited your zones, save the `config.lua` file and restart the resource or your FiveM server to apply the changes:

```
restart safe_fun
```

***

#### Test In-Game

Go to any of the defined zones. If everything is set up correctly:

* The configured actions (shooting, jumping, weapon use, etc.) will be automatically blocked
* If `Debug = true`, a transparent box will appear around the zone in-game, helping you verify its size, position, and rotation
