> For the complete documentation index, see [llms.txt](https://kierandev.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kierandev.gitbook.io/documentation/tmc-resources/pick-pocket/config-options.md).

# Config Options

## Radial Options

```lua
-- Root Radial Menu Options
Config.RadialOptions = {
    -- Name It Display In Radial Menu
    displayname = "Rob Ped",
    -- Icon From FontAwesome (https://fontawesome.com/icons?d=gallery&s=solid&m=free)
    icon = "mask",
    -- Icon Category From FontAwesome (https://fontawesome.com/icons?d=gallery&s=solid&m=free)
    iconCategory = "duotone",
    -- Range To Rob Ped
    range = 2.0
}
```

## Notify

```lua
-- Notify Messages
Config.Notify = {
    -- If player moves too far from ped during robbery
    TooFarFromPed = "Too far from ped",
    -- if there is no ped nearby to rob (only in the range specified above)
    NoPedNearby = "No ped nearby",
}
```

## Player Notifications

```lua
Config.Notifications = {
    -- If enabled, these notifications will show when the corresponding event happens. You can disable them if you have your own custom ones or don't want them.
    Enabled = true,
    Minigame = {
        -- When player successfully completes minigame
        Success = "Robbery successful",
        -- When player fails minigame
        Fail = "Robbery failed"
    },
    Ped = {
        -- When player fails or succeeds minigame and the ped decides to fight
        Fight = "You've angered them!",
        -- When player fails or succeeds minigame and the ped decides to flee
        Flee = "The ped is running away!"
    }
}
```

## Minigame

```lua
-- Minigame Settings
Config.Minigame = {
    -- Type of minigame. Find more in tmc_minigames/readme.md
    type = 'Lockbox',
    -- Data for the minigame. This will differ based on the type of minigame chosen. Check tmc_minigames/readme.md for more info on what data to put for each minigame
    data = {
        difficulty = 2,
        speed = 3,
        attempts = 1,
        stages = 2,
        stageTimeout = 3000
    },
    -- Optional animation during the minigame. Will not wait for the animation to finish before starting the minigame, so the minigame and animation will play simultaneously. If the animation is shorter than the minigame, it will just play again until the minigame is finished.
    animation = {
        enabled = true,
        dict = 'mp_common',
        name = 'givetake1_a',
        flag = 49,
        duration = 5000,
        waitForAnim = true
    }
}
```

## Loot

```lua
Config.Loot = {
    {
        name   = "Common",
        Chance = 80,
        Items  = {
            { item = "cash", min = 100, max = 500 },
        },
    },
    {
        name   = "Uncommon",
        Chance = 35,
        Items  = {
            { item = "phone", min = 1, max = 1 },
        },
    },
    {
        name   = "Rare",
        Chance = 20,
        Items  = {
            { item = "radio", min = 1, max = 1 },
        },
    },
}
```

## Cooldown

```lua
-- Cooldown Settings
Config.Cooldown = {
    -- If enabled, players will have a cooldown after robbing a certain amount of peds. This is to prevent players from farming the same area for loot.
    enabled = true,
    -- How many peds a player can rob before the cooldown is applied
    amountcanrob = 3,
    -- Cooldown time in minutes
    playercooldown = 30,
    -- If enabled, will show a notification after robbing a ped with how many more peds they can rob before the cooldown is applied
    showSearchNotify = true
}
```

## Dispatch

```lua
-- Dispatch Settings
Config.Dispatch = {
    enabled = true,
    chance = 30,
    jobType = 'police',
    title = 'Ped Robbery',
    description = 'A pedestrian robbery has been reported',
    urgency = 2,
    limits = {'Ped Robbery'}
}
```

## Ped Behaviour

```lua
-- Ped Behavior Settings
Config.PedBehavior = {
    EnableFightChance = true,
    -- Chance the ped will fight back if the player SUCCEEDS the minigame
    SuccessFightChance = 20,
    -- Chance the ped will fight back if the player FAILS the minigame
    FailFightChance = 50,
    -- Distance the ped will try to flee before giving up and just running away
    FleeDistance = 100.0,
    -- If enabled, the ped will be deleted after fleeing instead of just being left somewhere in the world
    DeleteAfter = true,
    -- If the ped is set to be deleted after fleeing, this is how long (in milliseconds) after they reach their flee distance that they will be deleted
    DeleteDelay = 15000
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://kierandev.gitbook.io/documentation/tmc-resources/pick-pocket/config-options.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.
