# Installation

{% hint style="warning" %}
Please download the script only on <https://aykscript.com> if you find the script elsewhere, it's a scam! Once you have purchased the script download it only via keymaster
{% endhint %}

{% hint style="danger" %}
Please note that if you have no knowledge of development, please follow all the steps without skipping them, and if you have any questions, don't hesitate to open a ticket!
{% endhint %}

{% hint style="info" %}
Welcome to the Ayk-Crimescene installation guide

Please follow all installation steps and apply them correctly. We hope the documentation will be easy to use for everyone! If after following all the instructions you still can't launch the script correctly, you can open a ticket.
{% endhint %}

## Guide Line

### Fisrt

*First download the asset via keymaster*

{% hint style="warning" %}
Be sure to download the latest version!
{% endhint %}

***

### Secondly

*Drop script in server resources and ensure file in server.cfg*

{% hint style="info" %}
Be sure to unzip the file
{% endhint %}

***

### Thirdly

No dependencies are required to run the script, as a custom file is available to everyone so you can add your own compatibility settings.

{% hint style="info" %}
But don't worry! The frameworks : qbcore, esx, and qbox are already preconfigured, so there's no need to add anything else. You can simply add custom compatibility settings if you have any!
{% endhint %}

{% hint style="danger" %}
Except for oxmysql, which is required
{% endhint %}

***

### SQL Installation

Copy the SQL and insert it into your database

```sql
CREATE TABLE IF NOT EXISTS `ayk_crimescene` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `scene_data` longtext DEFAULT NULL,
    `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
```

***

### QBCore Config :&#x20;

```lua
-- Your chosen framework: 'qbcore', 'esx', or 'qbox', or 'custom'. For custom frameworks, edit cl_custom.lua.
Config.Framework = 'qbcore' 

-- Your chosen target system: 'qb-target', 'ox_target', or 'custom'. For custom target, edit cl_custom.lua.
Config.TargetSystem = 'qb-target'

-- Your chosen notification system: 'qb-notify', 'ox-notify', or 'custom'. For custom notification system, edit cl_custom.lua.
Config.NotifSystem = 'qb-notify'
```

### ESX Config :&#x20;

```lua
-- Your chosen framework: 'qbcore', 'esx', or 'qbox', or 'custom'. For custom frameworks, edit cl_custom.lua.
Config.Framework = 'esx' 

-- Your chosen target system: 'qb-target', 'ox_target', or 'custom'. For custom target, edit cl_custom.lua.
Config.TargetSystem = 'ox_target'

-- Your chosen notification system: 'qb-notify', 'esx-notify', 'ox-notify', or 'custom'. For custom notification system, edit cl_custom.lua.
Config.NotifSystem = 'esx-notify'
```

### QBox Config :&#x20;

```lua
-- Your chosen framework: 'qbcore', 'esx', or 'qbox', or 'custom'. For custom frameworks, edit cl_custom.lua.
Config.Framework = 'qbox' 

-- Your chosen target system: 'qb-target', 'ox_target', or 'custom'. For custom target, edit cl_custom.lua.
Config.TargetSystem = 'qb-target'

-- Your chosen notification system: 'qb-notify', 'esx-notify', 'qbx-notify', 'ox-notify', or 'custom'. For custom notification system, edit cl_custom.lua.
Config.NotifSystem = 'qbx-notify'
```

***

### Locales

The script includes a built-in translation system, so no matter what language you speak, you can configure the script in that language!

```lua
-- Language file to use from the locales/ folder (e.g., 'en', 'fr').
Config.Locale = 'en'
```

{% hint style="warning" %}
If you want to add a language, please create a JSON file in the ./locales directory and name it using the abbreviation for your language. Then copy the contents of en.json and translate all the text into your language. Next, in the configuration file, change the Config.Locale setting to the abbreviation you used in the filename.
{% endhint %}

***

Thank you for downloading Ayk-Crimescene and for placing your trust in us. If you have any questions, please feel free to open a ticket on our Discord server!

{% hint style="info" %}
Ayk-Team
{% endhint %}


---

# 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://ayk-script.gitbook.io/ayk-script-docs/installation-assets/ayk-crimescene/installation.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.
