# Install Script

## 1-) Download the script

You must download the script you purchased via Keymaster;

* ak4y-core
* ak4y-aquaparkprop
* ak4y\_aquapark\_restaurant&#x20;

You will download 3 different files. You must download these files individually from [Keymaster](https://keymaster.fivem.net/asset-grants).

***

## 2-) Installing the script

### Open server.cfg and paste the following code block after the core files (qb, esx, qbox core).

```
ensure AuraStudio-Aquapark
ensure ak4y-core
ensure ak4y-aquaparkprop
ensure ak4y-aquapark_restaurant
```

{% hint style="warning" %}
The order in Server.cfg is important. First core, then props, then the script should be started!
{% endhint %}

***

### Now, based on the inventory you are currently using, load the items you need to load into your inventory.

{% tabs %}
{% tab title="ESX Inventory" %}

```sql
INSERT INTO items (name, label, weight, rare, can_remove) VALUES
('aquapark_ticket', 'Aquapark Ticket', 10, 0, 1);
```

{% endtab %}

{% tab title="OX Inventory" %}

```lua
['aquapark_ticket'] = {
        label = 'Aquapark Ticket',
        description = 'A ticket for the Aquapark Slides.',
        stack = false,
        weight = 10,
},
```

{% endtab %}

{% tab title="QB-Inventory" %}

```lua
aquapark_ticket = {
    name = 'aquapark_ticket',
    label = 'Aquapark Ticket',
    weight = 10,                 
    type = 'item',
    image = 'aquapark_ticket.png',
    unique = true,                   
    useable = true,
    shouldClose = true,
    description = 'A ticket for the Aquapark Slides.',
},

```

{% endtab %}
{% endtabs %}

### Then paste the following item image into the section of your inventory where the item images are located.

{% hint style="danger" %}
The file name should be **aquapark\_ticket.png**
{% endhint %}

<figure><img src="https://3767924772-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKJJbe1fiy459MBXXvuFL%2Fuploads%2Fv3Y4IK4Nmwevbl38MuSh%2Faquapark_ticket.png?alt=media&#x26;token=874b1eab-d524-4e3e-896f-16f147a082bd" alt=""><figcaption></figcaption></figure>

***

### Open the database application you use for SQL installation.

Create the following SQL table in your database.

```sql

CREATE TABLE IF NOT EXISTS `ak4y_aquapark` (
  `identifier` varchar(255) DEFAULT NULL,
  `experience` int(11) DEFAULT NULL,
  `totalEarnings` int(11) DEFAULT NULL,
  `completedJobs` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

```

***
