> ## 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 Container Opening

> Fence-based heist with 67 locations and decoy tips.

An illegal heist activity for FiveM / ESX. Players visit a fence NPC, buy a tip pointing to three possible shipping container locations (only one is real), drive out with a circular saw, cut the lock with a full grinder scene, and collect randomized loot. Built for drop-in — no database, no hardcoded resource dependencies.

## Features

* Fence NPC with ESX menu — buy tips for black money
* 3 blipped locations per tip — two decoys, one real container
* Grinder scene with synced animation, lock anim, sparks PTFX, drop bag
* 67 shipped container locations — plenty of replay
* Configurable loot table — accounts, items, weapons with weights
* Police alert chance on tip purchase (configurable %)
* Per-player cooldown + assignment expiry to recycle abandoned spots
* Global illegal-activity gate via `Hooks.ShouldAllowIllegalActivity`
* en/de localization
* Zero database footprint — server-memory cooldowns

## Requirements

<CardGroup cols={2}>
  <Card title="Required" icon="circle-check">
    `es_extended`, `ox_lib`
  </Card>

  <Card title="Optional" icon="puzzle-piece">
    Dispatch resource (via `Hooks.OnPoliceAlert`), quest system (via `Hooks.OnQuestProgress` — `ContainerOeffner` / `ContainerJaeger`)
  </Card>
</CardGroup>

## Configuration

```lua config.lua theme={null}
Config.Fence.coords            = vector4(-458.71, -2274.55, 8.52, 276.09)
Config.TippPrice               = 5000
Config.PaymentAccount          = 'black_money'
Config.CooldownSeconds         = 600
Config.AssignmentExpirySeconds = 1800
Config.TotalBlips              = 3
Config.SawItemName             = 'kreissaege'
Config.PoliceAlertChance       = 20
Config.LootRolls               = { min = 2, max = 4 }
```

67 pre-configured container locations ship out of the box.

## Hooks

See [Hooks reference / Container Opening](/hooks/apex-container-opening). Key hooks: `Hooks.OnQuestProgress`, `Hooks.OnPoliceAlert`, `Hooks.ShouldAllowIllegalActivity`, `Hooks.OnAuditLog`.

## Resource info

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