nay_lib
nay_lib is the shared library behind every Nayretis script. You get it with every purchase, install it once, and every Nayretis script you add uses it.
What it gives you
- One settings panel,
/nay, for every Nayretis script. Settings are stored in your database and applied to every player as soon as you save. See /nay panel. - Permissions by ACE, Discord, Steam, FiveM or license identifier. See Permissions.
- Six languages: English, French, Spanish, Portuguese, Polish and German. A missing translation falls back to English.
- Framework bridge: ESX Legacy, QBCore, QBox and ox_core detected automatically, with their inventories, targets and notifications. See Bridge.
- HTTP API for your website, dashboard or Discord bot, off by default. See HTTP API.
- Webhooks, including Discord messages, for script events. See Webhooks.
- Audit log of every change made in game, from the console or through the API. See Audit log.
- Nayretis notifications, text prompts and progress bars, shared by every script.
Requirements and start order
The only dependency is oxmysql. Start nay_lib after your framework, inventory and target resources, and before every Nayretis script:
cfg
ensure oxmysql
ensure nay_libTables are created on the first start. Server options that live in server.cfg are listed on the Convars page.