Skip to main content

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.

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

Required

es_extended, ox_lib

Configuration

config.lua
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:
server-side from your robbery resource
GlobalState.holdupData = {
    fleeca    = { available = true,  requiredCops = 3 },
    statebank = { available = false, requiredCops = 12 },
}

Hooks

See Hooks reference / Robberies Tablet. Key hooks: Hooks.IsPoliceJob, Hooks.ShowClientNotify, Hooks.ShowHelpText.

Resource info

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