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

# Installation

Follow these steps to deploy Dm-connectui on your FiveM server.

### Requirements

Required:

* A supported framework: `qbx_core`, `qb-core`, or `es_extended`
* A supported inventory: `ox_inventory`, `qb-inventory`, `qs-inventory`, `ps-inventory`, or `origen_inventory`
* A supported target resource: `ox_target`, `qb-target`, or `qtarget`

Recommended:

* `ox_lib` for notifications and progress bars
* `oxmysql` for persistent reputation

Optional:

* `ps-dispatch`
* `cd_dispatch`
* `qs-dispatch`

### Install Steps

1. Place the resource folder in your server resources folder.

```
resources/[dm-scripts]/dm_Hustling
```

2. Add the resource to `server.cfg`.

```cfg
ensure oxmysql
ensure ox_lib
ensure ox_target
ensure ox_inventory
ensure dm_Hustling
```

Adjust the ensures to match your server stack. For example, if you use `qb-target` or `qb-inventory`, ensure those resources before `dm_Hustling`.

3. Restart your server or run:

```
refresh
ensure dm_Hustling
```

### Database

If `oxmysql` is started, the script automatically creates this table:

```sql
CREATE TABLE IF NOT EXISTS `dm_hustling_reputation` (
    `identifier` VARCHAR(64) NOT NULL,
    `reputation` INT NOT NULL DEFAULT 0,
    PRIMARY KEY (`identifier`)
);
```

If `oxmysql` is missing, the script still works, but reputation will reset after resource/server restart.

### Start Order

Make sure your framework, inventory, target, and optional dependencies start before `dm_Hustling`.

Example for Qbox:

```cfg
ensure oxmysql
ensure ox_lib
ensure qbx_core
ensure ox_inventory
ensure ox_target
ensure dm_Hustling
```
