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

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

Config

Config.UpdateCheck

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

Config.UpdateCheck = true

Config.ThemeColor

Customize the interface to any color you want with Config.ThemeColor. This sets the overall glow of the boxes.

Config.ThemeColor = "#ff0066"

Config.DrawDistance

Maximum distance at which a player can see another player's /me and /do messages.

Config.DrawDistance = 20.0

Config Durations

These values define how long a message stays visible, in milliseconds.

Config.LogDuration = 7000
Config.TextDuration = 5000

Settings

Option Description
Config.LogDuration Time a message stays in the on-screen log.
Config.TextDuration Time the floating bubble stays above the player.

Config.LogMenuCommand

Customize the command that opens the settings menu with Config.LogMenuCommand. Players use this menu to drag the log to their preferred position.

Config.LogMenuCommand = "medomenu"

Config Chat Animation

Plays a "thinking/typing" animation on the character when the chat is opened. The animation stops when the message is sent, the chat is closed, or the player moves.

Config.ChatAnim = true
Config.ChatKey = 245 -- T
Config.AnimDict = "anim@heists@heist_corona@single_team"
Config.AnimName = "single_team_intro_boss"

Settings

Option Description
Config.ChatAnim Enables or disables the typing animation.
Config.ChatKey FiveM control ID of the key that opens the chat.
Config.AnimDict Animation dictionary used for the typing animation.
Config.AnimName Animation name used for the typing animation.

Config.Colors

Default colors of the /me and /do messages.

Config.Colors = {
    me = { r = 255, g = 0, b = 102, hex = "#ff0066" },
    do_color = { r = 255, g = 215, b = 0, hex = "#ffd700" }
}

Settings

Option Description
me Color used for /me messages.
do_color Color used for /do messages.

Note: Keep the r, g, b values and the hex value of a color in sync when you change it.


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.