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.
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.
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
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.
Config.RegisterOpenKey = 'F9'