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

# Installation

## Download <a href="#download" id="download"></a>

To find and use the assets, you must have made the purchase from your own keymaster which you have your server key in. Otherwise you will not be able to use the asset.Once you make the purchase, you'll be able to access it from your [keymaster](https://keymaster.fivem.net/asset-grants). If you have more issues regarding [FiveM Escrow](https://forum.cfx.re/t/introducing-asset-escrow-for-your-resources/4777151), accounts or asset startup errors you can go here and see if any of them match your case, since Escrow requires some basics. Such as your keymaster account, your license key, etc.

***

## Dependencies <a href="#dependencies" id="dependencies"></a>

This assets has depencies such as frameworks like QBCore and ESX also MySQL connections. You can only use this script with qb-core or es\_extended based servers.

#### MySQL <a href="#mysql" id="mysql"></a>

This asset needs MySQL connections so you need to have one of these resuources:

* oxmysql
* mysql\_async
* ghmattimysql

***

## Ensuring <a href="#ensuring" id="ensuring"></a>

To ensure and use this script in your server, simply add this code in your `server.cfg` file, under your MySQL and framework scripts.

```
ensure aty_business
```

***

## Adding New Businesses

The key and the name has to unique.

* coords, is where you enter the building
* dashboard, is where the marker of the dashboard will appear
* spawnCoords, is where you spawn when you enter the building.
* vehicleSpawnLocation, is where you delivery vehicle will appear when you start a delivery.
* boxSpawnLocation, is where the box will appear that you need to load to the vehicle.
* image, is the thumbnail image that will appear when you are purchasing it.
* orderCapacity, is the maximum amount of orders that this business can do at a time.

### Adding Workers

* The name of the worker has to be unique.
* coords, is where that npc will spawn.
* anim, is the idle animation that npc will play.
* multiplier is the amount that reduces the crafting time. 0 has no affect.

### Adding Categories

* name, is the label of it,
* category, has to be unique
* image is the icon of the category.

### Adding Shopping Items

* name, is the label of it.
* item, is the spawn name of the item.
* image, is the icon of the item.
* category, has to be the same as the ones that you created.

### Adding Crafting Items

* name, is the label of it,
* item, is the spawn name of the item,
* image, is the icon of the item,
* category, has to be the same as the ones that you created.

### Adding Upgrades

Upgrades are made custom. You need the open source version to add new upgrades.
