Agents can also search and read this documentation through its MCP server.
Config
The config file is located at
shared/config.lua. All options are written inside a singleConfig = { ... }table.
UpdateCheck
Checks for a new version when the resource starts and prints the result to the server console.
UpdateCheck = true,
PreviewGithubUrl
Address the animation preview images are loaded from.
PreviewGithubUrl = "https://cdn.jsdelivr.net/gh/hknwork/HKN_Works_Emote_Previews@main/Previews/",
Note: If you want to add previews for your own animations, upload them to your own GitHub repository together with the existing previews from our repository, and write your own link here.
Locale
Select the language used by the interface with Locale. The value must match one of the languages inside shared/locale.lua (en, tr).
Locale = "en",
Note: To add a new language, copy the
enblock insideshared/locale.lua, change its key and translate the values.
EnableProximityDanceSync
Allows players to walk near a dancing player and press E to synchronize and join their dance.
EnableProximityDanceSync = true,
AnimPos
Animation position tool, used to adjust the position of the character while an animation is playing.
AnimPos = {
Enabled = true,
CommandEnabled = true,
Command = "animpos"
},
Settings
| Option | Description |
|---|---|
Enabled |
Enables or disables the tool. |
CommandEnabled |
Enables or disables the command. |
Command |
Command used to open the tool. |
SitChairs
Lets players sit on chairs by walking up to them and pressing E. While sitting, the style is switched with the LEFT / RIGHT arrow keys.
SitChairs = {
Enabled = true,
HideCardAfter = 5,
Styles = {
{ label = "sit_style_relaxed", fallback = "Relaxed", scenario = "PROP_HUMAN_SEAT_CHAIR_MP_PLAYER" },
{ label = "sit_style_casual", fallback = "Casual", scenario = "PROP_HUMAN_SEAT_CHAIR" },
{ label = "sit_style_upright", fallback = "Upright", scenario = "PROP_HUMAN_SEAT_CHAIR_UPRIGHT" },
-- { label = "Legs Crossed", dict = "timetable@reunited@ig_10", anim = "base_amanda", offset = vector3(0.0, 0.0, 0.0) },
},
},
Settings
| Option | Description |
|---|---|
Enabled |
Enables or disables sitting on chairs. |
HideCardAfter |
Seconds the style card stays on screen. E hides it right away, the arrow keys show it again. 0 keeps it always shown. |
Styles |
List of sit styles. |
Style Settings
| Option | Description |
|---|---|
label |
Text shown in the interface, or a locale key. |
fallback |
Text shown when the locale key is missing. |
scenario |
Scenario played by the style. Use this or dict and anim. |
dict |
Animation dictionary played by the style. |
anim |
Animation name played by the style. |
offset |
Optional. vector3(right, forward, up) from the seat, for when the character floats or sinks. |
heading |
Optional. Extra turn in degrees. |
flag |
Optional. Animation flag. |
Note: A style that does not work for the character (some are male only) is skipped. Loungers and deck chairs keep their own pose. The list of supported chair models is located in
shared/chairs.lua.
LeanWall
Lets players lean on walls by standing with their back to a wall and pressing E. While leaning, the style is switched with the LEFT / RIGHT arrow keys.
LeanWall = {
Enabled = true,
MinWallWidth = 0.6,
HideCardAfter = 5,
Styles = {
{ label = "lean_style_classic", fallback = "Classic", scenario = "WORLD_HUMAN_LEANING" },
{ label = "lean_style_foot_up", fallback = "Foot Up", dict = "amb@world_human_leaning@male@wall@back@foot_up@base", anim = "base" },
},
},
Settings
| Option | Description |
|---|---|
Enabled |
Enables or disables leaning on walls. |
MinWallWidth |
Minimum width of the wall in meters, so poles, signs and similar objects do not count. |
HideCardAfter |
Seconds the style card stays on screen. 0 keeps it always shown. |
Styles |
List of lean styles. They use the same fields as the sit styles. |
Note: Use looping
baseclips for lean styles. Theidle_a/idle_bclips are short fidgets and look broken when looped.
MainMenu
These values define how players open the emote menu.
MainMenu = {
Enabled = true,
CommandEnabled = true,
Command = "hknemote",
KeyEnabled = true,
Key = "F11"
},
Settings
| Option | Description |
|---|---|
Enabled |
Enables or disables the emote menu. |
CommandEnabled |
Enables or disables the command. |
Command |
Command used to open the menu. |
KeyEnabled |
Enables or disables the key. |
Key |
Default key used to open the menu. |
RadialMenu
These values define how players open the radial menu.
RadialMenu = {
Enabled = true,
CommandEnabled = true,
Command = "radialmenu",
KeyEnabled = true,
Key = "F5"
},
Settings
| Option | Description |
|---|---|
Enabled |
Enables or disables the radial menu. |
CommandEnabled |
Enables or disables the command. |
Command |
Command used to open the radial menu. |
KeyEnabled |
Enables or disables the key. |
Key |
Default key used to open the radial menu. |
Keys
These values define the default keys used by the script. The key names are listed in the FiveM keyboard reference.
CrouchKey = "LCONTROL",
RagdollKey = "L",
PointKey = "B",
CancelKey = "X",
AcceptSharedKey = "Y",
CancelSharedKey = "N",
CancelHandsUp = true,
ShortcutKey = 21,
QuickEmoteSlots = 27,
Settings
| Option | Description |
|---|---|
CrouchKey |
Key used to crouch. |
RagdollKey |
Key used to ragdoll. |
PointKey |
Key used to point. |
CancelKey |
Key used to cancel the current emote. |
AcceptSharedKey |
Key used to accept a shared emote request. |
CancelSharedKey |
Key used to decline a shared emote request. |
CancelHandsUp |
Allows the hands up animation to be cancelled. |
ShortcutKey |
Control ID of the shortcut modifier key (21 = Left Shift). The radial menu does not open while it is held. |
QuickEmoteSlots |
Number of quick emote slots. |
MaxDistanceForSharedEmote
Maximum distance between two players for sending a shared emote request.
MaxDistanceForSharedEmote = 5.0,
EmoteSubcategories
Sub tabs shown under the Emotes category in the menu, in this order.
EmoteSubcategories = {
{ id = "fitness", label = "Fitness" },
{ id = "sit", label = "Sit" },
{ id = "wall", label = "Wall" },
{ id = "lay", label = "Lay" },
{ id = "gestures", label = "Gestures" },
{ id = "stand", label = "Stand" },
{ id = "work", label = "Work" },
{ id = "fun", label = "Fun" },
},
Settings
| Option | Description |
|---|---|
id |
Unique name of the tab, used as the tag. |
label |
Name of the tab shown in the menu. |
An emote is placed in a tab by adding Tag = "<id>" to its entry in client/animationlist.lua:
["mysit"] = { "anim@dict", "clip", "My Sit", Tag = "sit", AnimationOptions = { ... } },
Note: Emotes without a
Tag, or with anidthat is not listed here, are placed in Other.
Colors
Color options available in the menu. Each color can be turned on or off.
Colors = {
{ hex = "#E53935", suffix = "_red", enabled = true },
{ hex = "#1E88E5", suffix = "_blue", enabled = true },
{ hex = "#43A047", suffix = "_green", enabled = true },
{ hex = "#FDD835", suffix = "_yellow", enabled = true },
{ hex = "#FB8C00", suffix = "_orange", enabled = true },
{ hex = "#8E24AA", suffix = "_purple", enabled = true },
{ hex = "#D81B60", suffix = "_pink", enabled = true },
{ hex = "#212121", suffix = "_black", enabled = true },
{ hex = "#FAFAFA", suffix = "_white", enabled = true },
{ hex = "#757575", suffix = "_gray", enabled = true }
},
Settings
| Option | Description |
|---|---|
hex |
HEX code of the color. |
suffix |
Suffix that identifies the color. |
enabled |
Shows or hides the color in the menu. |
AdminIdentifiers
List of players with admin access in the emote menu. Each identifier must be written exactly as it appears for the player, including its prefix.
AdminIdentifiers = {
"hex:111111111111111111",
"license:16961c4eb5cd20f108e1f729b5e4b9a5b3b8f7b6"
}
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending
.mdto page URLs; this page is available as Markdown.