# Installation

Follow the steps below to properly install and configure the `cad-payments`script.

## Step-by-Step Guide

1. **Download the latest update**  
   Get the resource from [Keymaster ](https://keymaster.fivem.net/)or the [Cfx Portal](https://portal.cfx.re/assets/granted-assets).
2. **Configure the Notepad**  
   Set up the player list options from the Configuration section.
3. **Add to your ****`server.cfg`**  
   Insert the following line into your `server.cfg` file:

   ```
   ensure cad-payments
   ```
4. **You're all set!**

## Dependencies

Make sure the following requirements are met:

- Server Artifacts (Latest) – [Windows ](https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/)/ [Linux](https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/)
- [Onesync ](https://docs.fivem.net/docs/scripting-reference/onesync/#what-is-onesync-infinity)(enabled in your server configuration)

## Inventory Items

### ox\_inventory

- ox\_inventory/data/items.lua

```lua
['businesspos'] = {
    label = 'Business POS',
    weight = 1000,
    stack = false,
    description = "SWIPE ON THE GO FOR BUSINESS",
    client = {
        export = "cad-payments.useBusinessPos"
    }
},
['generalpos'] = {
    label = 'General POS',
    weight = 1000,
    stack = false,
    description = "SWIPE ON THE GO FOR INDIVIDUAL",
    client = {
        export = "cad-payments.useGeneralPos"
    }
},
```

- ox\_inventory/web/images

### qb-inventory / ps-inventory

- qb-core/shared/items.lua

{% code fullWidth="false" %}

```lua
businesspos = { name = 'businesspos', label = 'Business POS', weight = 100, type = 'item', image = 'generalpos.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'SWIPE ON THE GO FOR BUSINESS.' },
generalpos = { name = 'generalpos', label = 'General POS', weight = 100, type = 'item', image = 'businesspos.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'SWIPE ON THE GO FOR GENERAL.' },
```

{% endcode %}

- qb-inventory/html/images

### qs-inventory

- qs-inventory/shared/items.lua

{% code fullWidth="false" %}

```lua
['generalpos'] = {
    ['name'] = 'generalpos',
    ['label'] = 'General POS',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'generalpos.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'SWIPE ON THE GO FOR GENERAL.'
},
['businesspos'] = {
    ['name'] = 'businesspos',
    ['label'] = 'Business POS',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'businesspos.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'SWIPE ON THE GO FOR BUSINESS.'
},
```

{% endcode %}

- qs-inventory/html/images
