# Installation

## SQL

You can find assets/db.sql file in assets folder, please insert that sql into your database. It will create 3 tables for points, categories & pages.

## Server config

Our script is using fivem ACE permission system so we need add permission for our resource to be able to add permission to our predefined groups.

Insert this lines into your server.cfg / permissions.cfg

```
add_ace resource.rcore_guidebook command.add_ace allow
add_ace resource.rcore_guidebook command.remove_ace allow
add_ace resource.rcore_guidebook command.add_principal allow
add_ace resource.rcore_guidebook command.remove_principal allow
```

### Open with Key

You can also open guidebook with a key, we are using RegisterCommand so every player can rebind the key in the GTA settings (key bindings > fivem)

If you leave Config.RegisterOpenKey = false script will not register any key command.

**Example:**

```lua
Config.RegisterOpenKey = 'F9'
```

**Turned off**

```
Config.RegisterOpenKey = false
```

### Command

You can adjust all command names in config.lua

### Discord log

1. Go to rcore\_guidebook/sconfig.lua
2. Change SConfig.LogWebhook value


---

# 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://documentation.rcore.cz/paid-resources/rcore_guidebook/v1/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.
