# NPC Vehicle Trunk Loot

# NPC Vehicle Trunk Loot

Nord can optionally populate verified ambient/NPC vehicle trunks with one-time random loot.

## Enable/disable robbery

```lua
Config.VehicleInteraction.NPC.AllowTrunkRobbery = true
```

If disabled, NPC/ambient vehicle trunks cannot be opened.

## Default loot configuration

```lua
RandomLoot = {
    Enabled = true,
    EmptyChance = 15,
    MinRolls = 1,
    MaxRolls = 4,
    Items = {
        { item = 'water',         weight = 38, min = 1, max = 2 },
        { item = 'burger',        weight = 32, min = 1, max = 2 },
        { item = 'bandage',       weight = 18, min = 1, max = 2 },
        { item = 'backpack',      weight = 7,  min = 1, max = 1 },
        { item = 'weapon_pistol', weight = 1,  min = 1, max = 1 }
    }
}
```

## Safety rules

- Loot is generated once for the lifetime of that live network vehicle.
- Missing or disabled items are skipped.
- Ambient loot is ephemeral.
- It does not overwrite a persistent player-owned trunk.
- Locked trunks remain inaccessible and do not show the interaction.
