# Installation

### Step 1: Download

```
Download the latest release and extract to your resources folder.resources/
└── elenaatmrobbery/
├── config/
│ └── config.lua
├── client/
│ ├── utils.lua
│ ├── sounds.lua
│ ├── animation.lua
│ ├── minigame.lua
│ ├── main.lua
│ └── dealer.lua
├── server/
│ ├── main.lua
│ ├── dealer.lua
│ ├── webhook.lua
│ └── version.lua
├── shared/
│ └── framework.lua
├── locales/
│ ├── tr.lua
│ └── en.lua
├── html/
│ ├── index.html
│ ├── style.css
│ ├── script.js
│ └── images/
└── fxmanifest.lua
```

### Step 2: Install Dependencies

Ensure these resources are installed and running:

| Resource                      | Required | Download                                         |
| ----------------------------- | -------- | ------------------------------------------------ |
| ox\_lib                       | Yes      | [GitHub](https://github.com/overextended/ox_lib) |
| ox\_target or qb-target       | Optional | Auto-detect                                      |
| ox\_inventory or qb-inventory | Optional | Auto-detect                                      |
| MySQL (oxmysql etc.)          | Optional | For persistent stats                             |

### Step 3: Add Items to Inventory

#### For ox\_inventory

Add to `ox_inventory/data/items.lua`:

```lua
['lockpick'] = {
    label = 'Lockpick',
    weight = 100,
    stack = true,
},
['drill'] = {
    label = 'Drill',
    weight = 500,
    stack = true,
},
['thermite'] = {
    label = 'Thermite',
    weight = 300,
    stack = true,
},
['usb_hacker'] = {
    label = 'USB Hacker',
    weight = 50,
    stack = true,
},
['atm_card'] = {
    label = 'Stolen ATM Card',
    weight = 10,
    stack = true,
},
['marked_bills'] = {
    label = 'Marked Bills',
    weight = 50,
    stack = true,
},
['electronic'] = {
    label = 'Electronic Parts',
    weight = 200,
    stack = true,
},
['cash_bag'] = {
    label = 'Cash Bag',
    weight = 300,
    stack = true,
},
['security_card'] = {
    label = 'Security Card',
    weight = 10,
    stack = true,
},
['rolex'] = {
    label = 'Rolex Watch',
    weight = 100,
    stack = true,
},
['diamond'] = {
    label = 'Diamond',
    weight = 50,
    stack = true,
},
['goldbar'] = {
    label = 'Gold Bar',
    weight = 1000,
    stack = true,
},
['crypto_usb'] = {
    label = 'Crypto Wallet USB',
    weight = 50,
    stack = true,
},
```

#### For QBCore

Add to `qb-core/shared/items.lua`:

```
lockpick        = { name = 'lockpick',      label = 'Lockpick',           weight = 100,  type = 'item', image = 'lockpick.png',     unique = false, useable = false, shouldClose = false, description = 'A simple lockpick tool' },
drill           = { name = 'drill',         label = 'Drill',              weight = 500,  type = 'item', image = 'drill.png',        unique = false, useable = false, shouldClose = false, description = 'A powerful drill' },
thermite        = { name = 'thermite',      label = 'Thermite',           weight = 300,  type = 'item', image = 'thermite.png',     unique = false, useable = false, shouldClose = false, description = 'Single-use explosive' },
usb_hacker      = { name = 'usb_hacker',    label = 'USB Hacker',         weight = 50,   type = 'item', image = 'usb_hacker.png',   unique = false, useable = false, shouldClose = false, description = 'Digital hacking device' },
atm_card        = { name = 'atm_card',      label = 'Stolen ATM Card',    weight = 10,   type = 'item', image = 'atm_card.png',     unique = false, useable = false, shouldClose = false, description = 'A stolen ATM card' },
marked_bills    = { name = 'marked_bills',  label = 'Marked Bills',       weight = 50,   type = 'item', image = 'marked_bills.png', unique = false, useable = false, shouldClose = false, description = 'Marked money bills' },
electronic      = { name = 'electronic',    label = 'Electronic Parts',   weight = 200,  type = 'item', image = 'electronic.png',   unique = false, useable = false, shouldClose = false, description = 'Electronic components' },
cash_bag        = { name = 'cash_bag',      label = 'Cash Bag',           weight = 300,  type = 'item', image = 'cash_bag.png',     unique = false, useable = false, shouldClose = false, description = 'A bag full of cash' },
security_card   = { name = 'security_card', label = 'Security Card',      weight = 10,   type = 'item', image = 'security_card.png',unique = false, useable = false, shouldClose = false, description = 'A security access card' },
rolex           = { name = 'rolex',         label = 'Rolex Watch',        weight = 100,  type = 'item', image = 'rolex.png',        unique = false, useable = false, shouldClose = false, description = 'An expensive watch' },
diamond         = { name = 'diamond',       label = 'Diamond',            weight = 50,   type = 'item', image = 'diamond.png',      unique = false, useable = false, shouldClose = false, description = 'A precious diamond' },
goldbar         = { name = 'goldbar',       label = 'Gold Bar',           weight = 1000, type = 'item', image = 'goldbar.png',      unique = false, useable = false, shouldClose = false, description = 'A bar of pure gold' },
crypto_usb      = { name = 'crypto_usb',    label = 'Crypto Wallet USB',  weight = 50,   type = 'item', image = 'crypto_usb.png',   unique = false, useable = false, shouldClose = false, description = 'Contains cryptocurrency' },
```

### Step 4: Add to Server Config

Add to your `server.cfg`:

```
ensure ox_lib
ensure elenaatmrobbery
```

### Step 5: Configure

Edit `config/config.lua` to match your server. See Configuration for all options.

### Step 6: Add Images (Optional)

Place images in `html/images/`:

> html/images/> \
> ├── dealer\_bg.png (1280x720, dark background)> \
> ├── sidebar\_bg.png (400x1040, vertical)> \
> ├── logo.png (120x120, transparent)> \
> └── items/> \
> ├── lockpick.png (64x64, transparent)> \
> ├── drill.png> \
> ├── thermite.png> \
> ├── usb\_hacker.png> \
> ├── atm\_card.png> \
> ├── marked\_bills.png> \
> ├── electronic.png> \
> ├── cash\_bag.png> \
> ├── security\_card.png> \
> ├── rolex.png> \
> ├── diamond.png> \
> ├── goldbar.png> \
> └── crypto\_usb.png

### Step 7: Restart Server

Full server restart required for first install. Do not use `ensure`.


---

# 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/gameplay/atm-rob/installation.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.
