> For the complete documentation index, see [llms.txt](https://theftdev.gitbook.io/theftdev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://theftdev.gitbook.io/theftdev/theftdev-scripts/resources/atm-robbery/configuration.md).

# Configuration

{% tabs %}
{% tab title="QBCore" %}

```lua
Config = {}

Config.Target = "qb-target"                 -- "qb-target" or "ox_target"
Config.UseATM = true                        -- If true you can use ATM to get access to your bank
Config.UseCustomAlert = false               -- If true you can use your own custom dispatch export below
Config.DispatchAlert = function()
    -- Add your own custom alert export
    -- EXAMPLE:
    -- exports['ps-dispatch']:SignRobbery()
end

--## Configuration starts here ##--
Config.PoliceAmount = 2                     -- Amount of needed Police to start ATM Rob - 0 for no Police or minimum 2
Config.Cooldown = {
    cooldown = true,                        -- Set Cooldown true/false after robbing ATM
    cooldowntime = 5*60000,                 -- Cooldown after rob (5*60000 = 5 Minutes)
}

-- C4
Config.C4Rob = {
    item = "atm_c4",                        -- Required item to rob ATM - Add item to your inventory/items.lua
    cashtype = "cash",                      -- cash, bank, markedbills etc.
    cashAsItem = false,                     -- If true cash will be added as item in your inventory
    delay = 10,                             -- 10 seconds until explosion
    moneydrops = 10,                        -- Amount of moneybags
    reward = 250,                           -- Reward per moneybag
    pickuptime = 1500,                      -- Picking money time
    smoketime = math.random(55000,60000),   -- Smoke time
}

-- Hacking
Config.MiniGame = 3                         -- 1= Thermite - 2= Scrambler - 3= Circle - 4= VarHack  - You can change Mini Game just choose between 1-4
Config.RobSettings = {
    item = "gatecrack",                     -- Item to Hack ATM
    required = 1,                           -- Required amount of Hack item
    amount = 1,                             -- Removing amount of Hack item
    robtime = 25*1000,                      -- Rob Money time (25*1000 = 25 Seconds)
}

Config.Rewards = {
    reward = "markedbills",                 -- Reward Item - "markedbills" = Get Black Money and wash it or "cash" = Get cash directly
    totalbags = math.random(2310,2500),     -- Total Bags amount after robbing ATM or totalamount if you are using "cash"
}

Config.AtmSettings = {
    from = 0,                               -- 0 AM - Time for police call
    to = 23,                                -- 23 PM - Time for police call
    policecallchance = 100,                 -- 100% Police call chance from 0 AM - 23 PM
    fingerdna = 10,                         -- 10% leaving finger DNA at the ATM if failed
}

Config.Lang = {
    ["pickup_money"] = "[E] Pickup money",
    ["target_c4"] = "Use C4",
    ["target_label"] = "Hack ATM",
    ["target_useatm"] = "Use the ATM",
    ["police_alert"] = "ATM ROBBERY",
    ["placed_c4"] = "C4 placed! Explosion in ",
    ["time"] = " Seconds...",
    ["item_need"] = "You need Gatecrack to hack a ATM",
    ["c4_need"] = "You need a C4 to rob a ATM",
    ["wrong_amount"] = "You need more Gatecrack to hack this",
    ["cooldown"] = "You recently robbed a ATM, you need to wait a while before trying again",
    ["robsuccessful"] = "Oh yeah! You did it, here we go!",
    ["taking_money"] = "You're taking the money...",
    ["dna_notify"] = "You left fingerprints on the ATM!",
    ["failed"] = "You failed! Escape and try again later",
    ["no_police"] = "Not enough police in the state",
    ["no_atm"] = "No ATM nearby!",
}
```

{% endtab %}

{% tab title="ESX" %}

```lua
Config = {}

Config.DispatchAlert = function()
    exports['ps-dispatch']:SignRobbery()
end

--## Configuration starts here ##--
Config.PoliceAmount = 2                     -- Amount of needed Police to start ATM Rob - 0 for no Police or minimum 2
Config.PoliceJobs = {                       -- Only for ESX
    "police",
    "sheriff",
}

Config.Cooldown = {
    cooldown = true,                        -- Set Cooldown true/false if hacking failed or was successfully
    cooldowntime = 5*60000,                 -- Cooldown after successfully or failing robbing (5*60000 = 5 Minutes)
}

-- C4
Config.C4Rob = {
    item = "atm_c4",                        -- Required item to rob ATM - Add item to your inventory/items.lua
    cashtype = "money",                     -- money, bank, markedbills etc.
    cashAsItem = false,                     -- If true cash will be added as item in your inventory
    delay = 10,                             -- 10 seconds until explosion
    moneydrops = 10,                        -- Amount of moneybags
    reward = 250,                           -- Reward per moneybag
    pickuptime = 1500,                      -- Picking money time
    smoketime = math.random(55000,60000),   -- Smoke time
}

-- Hacking
Config.MiniGame = 3                         -- 1= Thermite - 2= Scrambler - 3= Circle - 4= VarHack  - You can change Mini Game just choose between 1-4
Config.RobSettings = {
    item = "gatecrack",                     -- Item to Hack ATM
    required = 3,                           -- Required amount of Hack item
    amount = 1,                             -- Removing amount of Hack item
    robtime = 25*1000,                      -- Rob Money time (25*1000 = 25 Seconds)
}

Config.Rewards = {
    reward = "money",                       -- Reward Item - "markedbills" "black_money" = Get Black Money and wash it or "cash" "money" = Get cash directly
    totalbags = math.random(39500,44920),   -- Total Bags amount after robbing ATM or totalamount if you are using "money"
}

Config.AtmSettings = {
    animation = "PROP_HUMAN_PARKING_METER",
    from = 0,                               -- 0 AM 
    to = 23,                                -- 23 PM 
    policecallchance = 100,                 -- 100% Police call chance from 0 AM - 23 PM
}

Config.Lang = {
    ["pickup_money"] = "[E] Pickup money",
    ["target_c4"] = "Use C4",
    ["target_lable"] = "Hack ATM",
    ["police_alert"] = "ATM ROBBERY",
    ["placed_c4"] = "C4 placed! Explosion in ",
    ["time"] = " Seconds...",
    ["item_need"] = "You need Gatecrack to hack a ATM",
    ["c4_need"] = "You need a C4 to rob a ATM",
    ["wrong_amount"] = "You need more Gatecrack to hack this",
    ["cooldown"] = "You recently robbed a ATM, you need to wait a while before trying again",
    ["robsuccessful"] = "Oh yeah! You did it, here we go!",
    ["taking_money"] = "You're taking the money...",
    ["dna_notify"] = "You left fingerprints on the ATM!",
    ["failed"] = "You failed! Escape and try again later",
    ["no_atm"] = "No ATM nearby!",
    ["no_police"] = "Not enough Police in the state. ~r~",
    ["no_police2"] = "~w~ Police required.",
    ["notify_header"] = "ATM Rob",
    ["notify_subheader"] = "Info",
}
```

{% endtab %}
{% endtabs %}


---

# 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://theftdev.gitbook.io/theftdev/theftdev-scripts/resources/atm-robbery/configuration.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.
