> 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/spawn-selector/installation.md).

# Installation

## Download

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

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

***

## Ensuring

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

```json
ensure aty_spawnselector
```

***

## Integration

Open your Multi Character script's client side and find the code that works when you select a character.

**Then simply add these codes in there:**

### On Create Character

```lua
TriggerEvent("aty_spawnselector:client:open", true, character)
```

### On Select Created Character

```lua
TriggerEvent("aty_spawnselector:client:open", false, character)
```

## Skinchanger

Goto skinchanger/client/main.lua and find the ApplySkin at 149th line and chage with this:

```lua
function ApplySkin(skin, clothes, ped)
    local playerPed = ped or PlayerPedId()
```

Then add this somewhere in the same file:

```lua
RegisterNetEvent("skinchanger:applySkin", ApplySkin)
```
