Skip to Content
Mizu GuidebookConfigurations

Configurations

⚙️
config.lua & sconfig.lua
Client/shared options live in config.lua; server-side logging lives in sconfig.lua. Changes take effect on resource restart.

General

SettingTypeDefaultDescription
Config.Frameworkstring'auto''auto', 'esx', 'qbcore', 'qbox', 'standalone'
Config.DebugboolfalseVerbose console output
Config.Localestring'en'Default language (fallback to en)
Config.DetectClientLocaleboolfalseAuto-detect player language
Config.DisablePageContentCopybooltrueDisable text selection in pages
Config.DisableDataPermissionsboolfalseBypass job restrictions (everyone sees everything)
Config.IFrameInsertIntoPagebooltrueAllow iframe embeds in pages

Commands & Keybinds

SettingTypeDefaultDescription
Config.Commands.Helpstring'guidebook'Open guidebook command
Config.Commands.Adminstring'guidebookadmin'Open admin panel command
Config.Commands.SendHelpstring'sendhelp'Send help to player command
Config.Commands.Navigatestring'gps'Navigate to help point command
Config.RegisterOpenKeystring/false'F9'Keybind to open guidebook (false to disable)
Config.Keys.OpenGuidebookstring'F9'Key used for the registered keybind
Config.Keys.HelpPointOpenint38FiveM control number for help point interaction (E)

Permissions

SettingTypeDefaultDescription
Config.Permissions.OPEN_ADMIN_PANELstring'guidebook.admin'ACE permission for the admin panel

ACE is checked first, with framework fallbacks for admin roles (QBCore: admin/god, ESX: admin/superadmin). See the Installation page for server.cfg examples.

Themes

SettingTypeDefaultDescription
Config.ActiveThemestring'blue'Active theme: blue, green, yellow, silver, red
Config.EnableThemeChangebooltrueAllow in-game theme switching

Themes are applied via CSS variables and persisted in localStorage. Try the live switcher on the Preview page.

Allowed iframe Domains

Websites can only be embedded if their domain is whitelisted in Config.AllowedIframeDomains. This list is sent to the NUI at runtime, so no JavaScript editing is required - just add the domain here.

Config.AllowedIframeDomains = { 'youtube.com', 'www.youtube.com', 'youtu.be', 'youtube-nocookie.com', 'www.youtube-nocookie.com', 'imgur.com', 'i.imgur.com', 'streamable.com', 'docs.google.com', 'drive.google.com', 'player.twitch.tv', 'clips.twitch.tv', 'www.twitch.tv', 'w.soundcloud.com', 'open.spotify.com', 'codepen.io', 'jsfiddle.net', 'discord.com', 'mizuscripts.com', 'www.mizuscripts.com', -- add your own here }
⚠️
Embedding caveats

List both example.com and www.example.com. The target site must also permit embedding - some send X-Frame-Options: DENY or a restrictive CSP and cannot be embedded anywhere.

Permission Groups

Define named groups of jobs for bulk restriction assignment in the admin panel.

Config.PermissionGroups = { emergency = { label = 'All Emergency Services', jobs = { 'police', 'ambulance', 'fire' } }, government = { label = 'All Government Jobs', jobs = { 'judge', 'lawyer', 'mayor' } }, }

Groups are resolved server-side - you can also use @emergency as a job name in permission arrays.

Multiple Guidebooks

Define separate guidebooks (e.g. rules, jobs, FAQ). Players see a guidebook selector in the sidebar.

Config.Guidebooks = { { id = 'default', title = 'Guidebook', icon = 'fas fa-book' }, { id = 'rules', title = 'Server Rules', icon = 'fas fa-gavel' }, { id = 'jobs', title = 'Job Guides', icon = 'fas fa-briefcase' }, }

Custom Branding

Config.Branding = { LogoURL = 'https://your-server.com/logo.png', -- Replaces default book icon Title = 'My Server Guide', -- Custom sidebar title CustomCSS = '', -- Raw CSS injected into NUI }
SettingTypeDescription
Config.HelpPointtableDefault draw/interact distances, text size/offset
Config.MarkertableDefault marker appearance
Config.BliptableDefault blip appearance
Config.Search.MinSearchLengthintMinimum query length (default 3)
Config.Search.MaxResultsintMax results returned (default 50)
Config.FrameworkTriggers.notifystringCustom notify event (empty = auto-detect by framework)

Server Logging (sconfig.lua)

SettingDescription
SConfig.LogType'discord' or 'fivemanage'
SConfig.LogWebhookDiscord webhook URL (leave empty to disable)
SConfig.FivemanageTokenToken for Fivemanage logging
SConfig.EnableLogsMaster toggle for all logging
SConfig.AlwaysMentionAdminMention the acting admin via Discord ID (<@id>) when available
SConfig.TruncateLongContentTruncate long text fields (e.g. page content) in logs
SConfig.MaxContentLengthMax content length when truncation is enabled (default 3500)
SConfig.LogColorsEmbed colors per action (create, edit, delete, update, info)
SConfig.LogEvents.*Per-event toggles (see below)

Log Events

Each event below can be toggled individually under SConfig.LogEvents:

EventDescription
CreateCategoryNew category created
UpdateCategoryCategory edited
DeleteCategoryCategory deleted
CreatePageNew page created
EditPagePage edited
DeletePagePage deleted
CreatePointNew help point created
EditPointHelp point edited
DeletePointHelp point deleted
SendHelpHelp sent to player
BulkDeleteBulk delete operations
ImportData import
ExportData export
RollbackAudit rollback
DuplicateEntity duplicated

Last updated on