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

Select the language used for compass directions and zone names with Config.Locales. The value must match one of the files inside the locales folder.

Config.Locales = "tr"

Note: To add a new language, copy locales/tr.lua, rename it, change Lang["tr"] to your language code and translate the values.


Config.HudColor

Customize the HUD to any color you want with Config.HudColor.

Config.HudColor = "#FF6700"

Config.showLogo

Shows or hides the logo in the HUD.

Config.showLogo = true

Config.useMPH

Select the speed unit shown in the vehicle HUD.

Config.useMPH = false

Settings

Value Description
true Miles per hour.
false Kilometers per hour.

Config.enableBeltSystem

Enables or disables the built-in seatbelt system. The seatbelt is toggled with the K key by default.

Config.enableBeltSystem = true

Note: The seatbelt is not available on motorcycles, bicycles and boats. Disable this option if you already use another seatbelt script.


Config.enableCruiseControl

Enables or disables the built-in cruise control system. Cruise control is toggled by the driver with the J key by default.

Config.enableCruiseControl = false

Locales

These values define the texts used by the HUD. They are located in the locales folder.

Lang["tr"] = {
    directions = {"K", "KD", "D", "GD", "G", "GB", "B", "KB", "K"},
    unknownZone = "Bilinmeyen Bölge",
    zoneNames = { AIRP = "Los Santos Uluslararası Havalimanı", ALAMO = "Alamo Denizi", ... },
}

Locale Fields

Key Description
directions Compass directions, starting from North and going clockwise.
unknownZone Text shown when the player's zone is unknown.
zoneNames Names of the map zones shown in the location display.

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.