HKN Works Logo
HKN Works/Docs/hkn-works-resources

Agents can also search and read this documentation through its MCP server.

Config

Config.Locale

Select the language used by the settings menu with Config.Locale. The value must match one of the files inside the locales folder (en, tr).

Config.Locale = "en"

Note: To add a new language, copy locales/en.lua, rename it and translate the values.


Config.UpdateCheck

Checks for a new version when the resource starts and prints the result to the server console.

Config.UpdateCheck = true

Config.MenuCommand

Customize the command that opens the player settings menu with Config.MenuCommand.

Config.MenuCommand = "notifymenu"

Config.ThemeColor

Customize the settings menu to any color you want with Config.ThemeColor.

Note: This value only changes the color of the settings menu. The colors of the notifications themselves are chosen by each player inside the menu.

Config.ThemeColor = "#ff0066"

Locales

These values define every text label used by the settings menu. They are located in the locales folder.

Locales['en'] = {
    menu_title = "NOTIFICATION SETTINGS",
    menu_desc = "You can drag the notification on the screen to adjust its position. You can change colors below.",
    drag_title = "DRAG ME",
    drag_desc = "You can adjust the position and colors from the menu below.",
    save_btn = "SAVE",
    close_btn = "CLOSE",
    notify_test_title = "TEST SUCCESSFUL",
    notify_test_desc = "Your notification settings have been updated and saved."
}

Locale Fields

Key Description
menu_title Menu title displayed at the top of the interface.
menu_desc Short description shown below the title.
drag_title Title of the draggable preview notification.
drag_desc Description of the draggable preview notification.
save_btn Save button text.
close_btn Close button text.
notify_test_title Title of the notification shown after saving.
notify_test_desc Message of the notification shown after saving.

For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs; this page is available as Markdown.