# Installation

Follow the steps below to properly install and configure the `cad-notepad`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-notepad
   ```
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
["notepad"] = {
    label = "Notepad",
    weight = 100,
    stack = false,
    close = true,
    description = "Sometimes handy to remember something.",
    server = {
        export = "cad-notepad.useItem",
    }
},

["notepad_slip"] = {
    label = "Note",
    weight = 10,
    stack = false,
    close = true,
    description = "Piece of paper which has something written on it.",
    server = {
        export = "cad-notepad.useItem",
    }
},
```

- ox\_inventory/web/images

### qb-inventory / ps-inventory

- qb-core/shared/items.lua

{% code fullWidth="false" %}

```lua
notepad = { name = 'notepad', label = 'Notepad', weight = 100, type = 'item', image = 'notepad.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Sometimes handy to remember something.' },
notepad_slip = { name = 'notepad_slip', label = 'Note', weight = 100, type = 'item', image = 'notepad_slip.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Piece of paper which has something written on it.' },
```

{% endcode %}

- qb-inventory/html/images

### qs-inventory

- qs-inventory/shared/items.lua

{% code fullWidth="false" %}

```lua
['notepad'] = {
    ['name'] = 'notepad',
    ['label'] = 'Notepad',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'notepad.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'Sometimes handy to remember something.'
},
['notepad_slip'] = {
    ['name'] = 'notepad_slip',
    ['label'] = 'Note',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'notepad_slip.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'Piece of paper which has something written on it.'
},
```

{% endcode %}

- qs-inventory/html/images
