# Installation

## 1. Download Resource

Download the purchased resource from [**CFX Portal**](https://portal.cfx.re/assets/granted-assets) - the official site of FiveM with purchased resources.

***

## 2. Install Required Dependencies

This script needs a few extra resources to work properly.\
Below you will find a list of things to download - click the link, download and upload to your server just like other resources.

<table data-full-width="false"><thead><tr><th width="175.87274169921875">Resource</th><th width="357.4000244140625" data-type="content-ref">Download Link</th><th>Note</th></tr></thead><tbody><tr><td><strong>esx_license</strong></td><td><a href="https://github.com/esx-framework/esx_license">https://github.com/esx-framework/esx_license</a></td><td><strong>Only for ESX users!</strong></td></tr></tbody></table>

***

## 3. Import Database Tables

This is a very important step - without it, the script will not work properly.\
Depending on the framework you are using (ESX or QB-Core), select the appropriate section below and **paste the SQL code into your database**.

{% hint style="warning" %}

## Not sure how to do it?

No worries - we've prepared a short guide that shows you step by step how to import an SQL file into your database:\
👉 [**Click here to view the tutorial.**](https://docs.vames-store.com/helpful/basic-server-knowledge/how-to-import-sql-to-database)
{% endhint %}

<details>

<summary>Database for ESX</summary>

```sql
INSERT INTO `licenses` (`type`, `label`) VALUES
    ('theory_boat', 'Theory Boat'),
    ('practical_boat', 'Practical Boat');
```

</details>

***

## 4. Start Resource

To start a resource in your `server.cfg`, ensure that it begins after your framework has been initiated. For instance, if you are using a framework like `es_extended`, you should start resource after it, like so:

```python
start [core] # For example, here is your framework (esx/qb-core)

# Here you run your other resources like esx_policejob etc.

# VMS Resources
start vms_boatschoolv2
```

Ensure there are no syntax errors or incorrect paths in your `server.cfg`.
