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.Locale

Select the language used by the interface with Config.Locale. The value must match one of the keys inside Config.Locales.

Config.Locale = 'en'

Config.ThemeColor

Customize the interface to any color you want with Config.ThemeColor.

Config.ThemeColor = "#FF00DD"

Config.Locales

These values define every text label used by the Welcome Screen interface. You can freely customize them or add a new language by copying one of the blocks and changing its key.

Config.Locales = {
    ['tr'] = {
        next = "İleri",
        back = "Geri",
        skip = "Tanıtımı Atla",
        finish = "Tanıtımı Bitir",
        press_e = "E Tuşuna basarak tanıtımı izle",
        already_watched = "Bu tanıtımı zaten izledin!"
    },
    ['en'] = {
        next = "Next",
        back = "Back",
        skip = "Skip Intro",
        finish = "Finish Intro",
        press_e = "Press E to watch the intro",
        already_watched = "You have already watched this intro!"
    }
}

Locale Fields

Key Description
next Next button text.
back Back button text.
skip Skip button text.
finish Finish button text, shown on the last scene.
press_e Prompt text for watching the intro.
already_watched Message shown when a player has already watched the intro.

Note: The scene titles and descriptions are not part of the locales. Write them in your own language directly inside Config.Locations.


Config.Locations

List of scenes shown during the intro. The scenes are played in order, starting from [1].

Config.Locations = {
    [1] = {
        title = "International Airport",
        description = "Where you take your first step into Los Santos. A new face, a new name in the city... The adventure begins right on this asphalt.",
        duration = 6,
        smoothTransition = true,
        cameras = {
            { coords = vector3(-1021.41, -2708.54, 25.97), pitch = -10.0, heading = 149.53 },
            { coords = vector3(-1010.32, -2679.57, 44.74), pitch = -10.0, heading = 147.71 }
        }
    },
    [2] = {
        title = "Mechanic Garages",
        description = "Blown engine? Torn off bumper? The city's master hands are right here.",
        duration = 6,
        smoothTransition = false,
        cameras = {
            { coords = vector3(-370.06, -130.84, 42.25), pitch = -15.0, heading = 251.58 },
            { coords = vector3(-383.77, -116.12, 49.7),  pitch = -15.0, heading = 240.95 },
            { coords = vector3(-184.66, -1296.86, 34.83), pitch = -15.0, heading = 125.75 }
        }
    }
}

Scene Settings

Option Description
title Title of the scene shown in the interface.
description Description of the scene shown below the title.
duration Length of the scene in seconds. Defaults to 5 when not provided.
smoothTransition How the camera moves during the scene. Defaults to true.
cameras List of camera positions used by the scene.

Smooth Transition

Value Description
true The camera glides smoothly from the first camera to the last camera of the scene over the duration.
false The camera cuts to each camera in the list one by one with a fade. Use this when the cameras are far apart.

Camera Settings

Option Description
coords Position of the camera (vector3(x, y, z)).
pitch Vertical angle of the camera. Negative values look downwards.
heading Direction the camera is facing.

Note: A scene with a single camera stays still for its whole duration.


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.