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

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

Installation

Installation

General Setup

  1. Extract the resource into your server's resources folder.
  2. Make sure the folder name is strictly hkn_emote.
  3. Remove or stop any other emote menu running on your server.
  4. Open your server.cfg.
  5. Make sure the default FiveM resources are started before this script.
  6. Add the following line:
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure baseevents

ensure hkn_emote

Warning: This script registers the /e and /emote commands as well as the crouch, point and ragdoll keys. If another resource on your server already provides these, remove it to avoid conflicts.


Usage

Commands

Command Description
/hknemote Opens the emote menu.
/radialmenu Opens the radial menu.
/e [name] Plays an emote by its name.
/emote [name] Plays an emote by its name.
/cancelemote Cancels the current emote.
/animpos Opens the animation position tool.

Default Keys

Key Description
F11 Open the emote menu.
F5 Open the radial menu.
X Cancel the current emote.
Y Accept a shared emote request.
N Decline a shared emote request.
LCONTROL Crouch.
B Point.
L Ragdoll.
E Sit on a chair, lean on a wall or join a dance when nearby.

Note: The keys are registered through FiveM's native key-mapping system, so every player can rebind them from Settings > Key Bindings > FiveM.


Configuration

Below are the main configuration options for hkn_emote. The config file is located at shared/config.lua. See the Config page for every option.

Update Check

Enable or disable the version check on resource start.

UpdateCheck = true,

Language

Select the language used by the interface.

Locale = "en",

Change the command and key used to open the emote menu.

MainMenu = {
    Enabled = true,
    CommandEnabled = true,
    Command = "hknemote",
    KeyEnabled = true,
    Key = "F11"
},

Radial Menu

Change the command and key used to open the radial menu.

RadialMenu = {
    Enabled = true,
    CommandEnabled = true,
    Command = "radialmenu",
    KeyEnabled = true,
    Key = "F5"
},

Keys

Change the default keys used by the script.

CrouchKey = "LCONTROL",
RagdollKey = "L",
PointKey = "B",
CancelKey = "X",
AcceptSharedKey = "Y",
CancelSharedKey = "N",

Admin Identifiers

Players with admin access in the emote menu.

AdminIdentifiers = {
    "hex:111111111111111111",
    "license:16961c4eb5cd20f108e1f729b5e4b9a5b3b8f7b6"
}

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.