# Mission System

```
The mission system provides a complete gameplay loop:
**Get Mission → Find Vehicle → Pick Lock → Drive to Chop Shop → Chop All Parts → Claim Reward**
```

***

```
## How It Works

1. 🧑 Player talks to **Mission NPC**
2. 📋 Gets a random vehicle assignment
3. 📍 Vehicle location marked on map
4. 🔑 Player goes to vehicle and **picks the lock** (minigame)
5. 🚗 Drives vehicle to **Chop Shop**
6. 🔧 Parks and **chops all parts**
7. 💰 Returns to NPC and **claims bonus reward**
```

````markdown

```lua
Config.Missions = {
    enabled = true,
    cooldownMinutes = 15,
    rewardType = 'cash',        -- 'cash', 'bank', 'black_money'
    bonusOnFullChop = true,

    npc = {
        model = 'g_m_y_lost_01',
        coords = vector4(479.92, -1310.66, 28.21, 179.0),
        scenario = 'WORLD_HUMAN_SMOKING',
    },

    vehicles = {
        { model = 'sultan',   label = 'Sultan',   difficulty = 'easy',   baseReward = { min = 2500, max = 4000  } },
        { model = 'zentorno', label = 'Zentorno', difficulty = 'hard',   baseReward = { min = 9000, max = 14000 } },
    },

    vehicleSpawnPoints = {
        vector4(221.23, -803.80, 30.69, 243.47),
        vector4(-47.52, -1117.29, 26.43, 1.21),
    },

    lockpick = {
        enabled = true,
        easy   = { type = 'circle',   speed = 20, size = 50, rounds = 1 },
        medium = { type = 'circle',   speed = 25, size = 45, rounds = 2 },
        hard   = { type = 'sequence', length = 4 },
    },
}
````

### Adding Mission Vehicles

```
{ 
    model = 'model_name',     -- GTA vehicle model
    label = 'Display Name',   -- Shown in UI
    difficulty = 'easy',      -- easy, medium, hard (affects lockpick)
    baseReward = { 
        min = 2500,           -- Minimum bonus reward
        max = 4000            -- Maximum bonus reward
    } 
},
```

### Adding Spawn Points

```
vector4(x, y, z, heading),
```

Add more spawn points for variety. System picks randomly.

### Lockpick Types

| Type       | Description              | Difficulty Options  |
| ---------- | ------------------------ | ------------------- |
| `circle`   | Timing-based circle game | speed, size, rounds |
| `sequence` | Remember key sequence    | length              |
| `wire_cut` | Cut the correct wire     | wires, timeLimit    |

### Mission Flow Diagram

```
[NPC] → Request Mission
  ↓
[Server] → Check cooldown & police count
  ↓
[Client] → Show mission UI
  ↓
[Accept] → Spawn vehicle at random point
  ↓
[Player] → Go to vehicle location
  ↓
[Lockpick] → Minigame based on difficulty
  ↓
[Success] → Keys given, drive to chop shop
  ↓
[Chop Shop] → Park & chop all parts
  ↓
[All Done] → Return to NPC
  ↓
[NPC] → Claim bonus reward
  ↓
[Cooldown] → Wait before next mission
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://elena-scripts.gitbook.io/elenascripts/jobs-and-activities/chop-shop-v1/mission-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
