# 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="/files/JJfYCqslAbLu9Tyu7DRk" 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;

```

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ak4y.com/scripts/ak4y-aquapark_restaurant/install-script.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
