# Green Zone System

`Green Zone System` is a FiveM safe zone resource that allows you to create fully configurable protected areas directly in-game.

It is designed for cities, hospitals, safe zones, public areas, and other protected locations where players should have limited combat access and controlled behavior. Each zone can be configured individually with options such as healing, notifications, speed limits, routing buckets, map blips, bypass jobs, and allowed weapons.

With an in-game editor, persistent zone settings, and easy integration through state bags, the system is flexible, immersive, and simple to manage.

### Features

* In-game green zone creation
* Per-zone configurable settings
* Optional heal on enter
* Zone boundary display
* Custom enter and exit messages
* Optional separate session using routing buckets
* Configurable speed limits
* Job-based weapon bypass support
* Allowed weapon list per zone
* Configurable map blips
* State bag support for external scripts

### How it works

Zones are created directly in-game using the zone editor.

Each zone can have its own behavior and restrictions. When a player enters a zone, the system applies the configured settings such as healing, notifications, weapon restrictions, routing bucket changes, or speed limits.

Other resources can also detect whether the player is currently inside a green zone by reading the local state bag.

### Included Pages

* Installation
* Configuration

### Requirements

Before using this resource, make sure all required dependencies are installed and started correctly.

### Notes

* Zones are created and configured in-game
* Each zone can have its own settings
* Players inside session-based zones can be isolated using routing buckets
* Other resources can detect zone status through `LocalPlayer.state.IsGreenZone`
* Make sure the UI is built before deploying the resource


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mskscripts.gitbook.io/mskscripts/scripts/green-zone-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
