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

# Installation

### Requirements

* **SB Bridge**
* **oxmysql**
* **screenshot-basic**

### Steps

1. Add the items from `install/qb-core_items.lua` (QBCore) or `install/ox_inventory_items.lua` (Qbox or ox\_inventory).
2. Put item images named `polaroid_camera.png`, `polaroid_film.png` and `polaroid_photo.png` in your inventory's image folder.
3. Start the resource after SB Bridge and screenshot-basic:

```cfg
ensure sbpolaroid
```

The tables `sb_polaroid_photos` and `sb_polaroid_film` are created on start. `install/sbpolaroid.sql` is included if you need it.

### Secrets

Upload tokens and Discord webhooks go in `server/secrets.lua`, which only the server loads, or in convars:

```cfg
set sbpolaroid_fivemanage "TOKEN"
set sbpolaroid_fivemerr   "TOKEN"
set sbpolaroid_discord    "https://discord.com/api/webhooks/..."
set sbpolaroid_logs       "https://discord.com/api/webhooks/..."
```

Never put these in client-side files.
