> For the complete documentation index, see [llms.txt](https://mskscripts.gitbook.io/mskscripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mskscripts.gitbook.io/mskscripts/scripts/green-zone-system.md).

# 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
