> ## 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 Robberies Tablet

> DARKNET dispatch tablet with live state-bag sync.

A DARKNET-style tablet for FiveM / ESX that shows the real-time availability of every robbery location on your server (state bank, jewelry, human labs, fleeca, convenience, barbers, vehicles, …). Drops into any server with minimal rewiring — reads from a single `GlobalState` bag your existing robbery system already writes.

## Features

* Full-screen DARKNET tablet NUI with live status indicators (green / red)
* Auto re-render on every state bag change — no polling!
* Command-driven (`/darknet`) + configurable usable inventory item (`tablet_robberies`)
* Allowed-job list (e.g. `police`, `lssd`)
* Cop-count aggregation across multi-faction state bags
* Global illegal-activity lock via `GlobalState.canDoIllegalStuff`
* en/de NUI localization (strings pushed from Lua to JS)

## Requirements

<Card title="Required" icon="circle-check">
  `es_extended`, `ox_lib`
</Card>

## Configuration

```lua config.lua theme={null}
Config.Command           = 'darknet'
Config.UsableItem        = 'tablet_robberies'
Config.AllowedJobs       = { 'police', 'lssd' }
Config.StateBagKey       = 'holdupData'
Config.CopCountStateBags = { 'police:count', 'lssd:count' }
Config.Robberies         = {
    { id = 'fleeca',    nameKey = 'fleeca_name' },
    { id = 'statebank', nameKey = 'statebank_name' },
    { id = 'jewelry',   nameKey = 'jewelry_name' },
}
```

Your existing robbery system writes the state bag the tablet reads:

```lua server-side from your robbery resource theme={null}
GlobalState.holdupData = {
    fleeca    = { available = true,  requiredCops = 3 },
    statebank = { available = false, requiredCops = 12 },
}
```

## Hooks

See [Hooks reference / Robberies Tablet](/hooks/apex-robberies-tablet). Key hooks: `Hooks.IsPoliceJob`, `Hooks.ShowClientNotify`, `Hooks.ShowHelpText`.

## Resource info

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