> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apex-services.site/llms.txt
> Use this file to discover all available pages before exploring further.

# APEX Restricted Zones

> In-game lockdown system with pulsing blips.

A restricted-zone / lockdown system for FiveM / ESX. Authorized jobs (police, LSSD, FIB, …) create radius-based zones at their current location with configurable radii. Zones render as pulsing blips for every player and persist in the database.

## Features

* In-game `/restrictedzones` command — opens an ESX menu to create/manage zones
* Radius picker — 25 / 50 / 75 / 100 / 150 / 200m with preview blip
* Auto big-map activation when previewing large zones
* Pulsing radius blip — alternating colors, visible to all players
* Live sync via GlobalState — no manual refresh needed
* Automatic SQL table creation
* en/de localization

## Requirements

<Card title="Required" icon="circle-check">
  `es_extended` (uses `ESX.UI.Menu`), `ox_lib`, `oxmysql`
</Card>

## Configuration

```lua config.lua theme={null}
Config.Command                 = 'restrictedzones'
Config.AllowedJobs             = { 'police', 'fib', 'lssd' }
Config.RadiusOptions           = { 25, 50, 75, 100, 150, 200 }
Config.DefaultRadius           = 50.0
Config.AnnounceCooldownSeconds = 10
Config.BigmapPreviewThreshold  = 100
Config.Blip = {
    sprite           = 60,
    scale            = 0.8,
    color            = 29,
    colorPulseA      = 1,
    colorPulseB      = 38,
    pulseIntervalMs  = 500,
    radiusAlpha      = 150,
    radiusMultiplier = 2.0,
}
```

## Hooks

See [Hooks reference / Restricted Zones](/hooks/apex-restricted-zones). Key hooks: `Hooks.HasPermission`, `Hooks.OnZoneCreated`, `Hooks.OnZoneDeleted`.

Exports: `refreshZones`, `getAllZones`, `isCoordInRestrictedZone`, `isInsideRestrictedZone`.

## Resource info

<Note>
  Code accessible: `config.lua`, `hooks.lua`, `locales/*`. Approximately 600 lines of Lua. English + German.
</Note>
