# Installation

The whole script is basically drag and drop, but you need to add permissions in your server.cfg, see below.

## 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.

{% hint style="danger" %}
❗ DO NOT CHANGE `resource.rcore_guidebook` TO ANYTHING ELSE ❗\
This part needs to have the exact name as the resource folder name.
{% endhint %}

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
```

### Commands

You can adjust all command names in config.lua

* `/help` - open guidebook
* `/helpadmin` - open admin panel if you have permission
* `/pointgps <point_key>` - if a point is setup to navigate, you can use e.g. `/point police` to navigate to the police station help point
* `/sendhelp <id> <page_key>` - opens guidebook for player with specified id on specified page, e.g. `/sendhelp 4 rules` (will open guidebook for player with id 4 on rules page)

### Discord log

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