# Installation Guide

***

## **Step 1: SQL Modifications**

You must execute the SQL code to set up the necessary database tables.

#### **Instructions**

1. Open your database management tool (e.g., phpMyAdmin or HeidiSQL).
2. Select Your Database.
3. Run the following SQL code to create the required tables:

```sql
CREATE TABLE `rental_vehicles` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`location` INT(11) NOT NULL,
	`citizenid` VARCHAR(50) NOT NULL COLLATE 'utf8mb3_general_ci',
	`vehicle` VARCHAR(50) NOT NULL COLLATE 'utf8mb3_general_ci',
	`plate` VARCHAR(50) NOT NULL COLLATE 'utf8mb3_general_ci',
	`mods` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_bin',
	`rate` INT(11) NULL DEFAULT '0',
	`rented` TINYINT(1) NOT NULL DEFAULT '0',
	`rent_period` DATE NULL DEFAULT NULL,
	`renter` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
	PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8mb3_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=28
;

CREATE TABLE `vehiclerentals` (
	`location` INT(11) NOT NULL,
	`owned` INT(11) NULL DEFAULT NULL,
	`owner` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
	`label` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
	`date_purchased` DATE NULL DEFAULT NULL,
	`level` INT(11) NULL DEFAULT NULL,
	`price` INT(11) NULL DEFAULT NULL,
	`funds` INT(11) NULL DEFAULT '0',
	PRIMARY KEY (`location`) USING BTREE
)
COLLATE='utf8mb3_general_ci'
ENGINE=InnoDB
;
```

***

## **Step 2:** Configure the `Config.lua` File

Customize the `Config.lua` file based on your preferences and requirements. Ensure the settings align with your server's intended functionality and features.

***


---

# 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://moon-store.gitbook.io/docs/player-owned-vehicle-rental-script/installation-guide.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.
