# Installation

## First Step:

1. Download the **latest version** form [keymaster](https://keymaster.fivem.net).
2. **If you not have rpemotes or similar resource**, **download** [**rpemotes**](https://github.com/TayMcKenzieNZ/rpemotes) **recommended.**

## Second Step:

1. Open your **rpemotes** resource folder and **open client folder**.
2. Delete **EmoteMenu.lua** file.&#x20;

<figure><img src="https://2286446423-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCyYitmazizLZ1Ce09Ped%2Fuploads%2FHLeKvUDdHF53EgYZSLGZ%2Fimage.png?alt=media&#x26;token=998b7e57-1ba5-4fef-91ca-a97fd3943491" alt=""><figcaption><p>Delete this file</p></figcaption></figure>

3. Open/Edit **Emote.lua** file:

<figure><img src="https://2286446423-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCyYitmazizLZ1Ce09Ped%2Fuploads%2F2dLSrOJR9NTkgF36dmLw%2Fimage.png?alt=media&#x26;token=2c08b6a4-2a27-4ee6-88ff-ed12853931ee" alt=""><figcaption><p>Open this file</p></figcaption></figure>

4. Go to the last line and paste this code:

```lua
-- Artz Menu Exports
lang = Config.MenuLanguage

exports("EmoteCommandStart", function(emoteName, textureVariation)
        EmoteCommandStart(nil, {emoteName, textureVariation}, nil)
end)
exports("WalkCommandStart", function(walkName)
        WalkCommandStart(walkName)
end)
exports("ExpressionCommandStart", function(expressionName)
    if RP then
        if RP.Expressions[expressionName] ~= nil then
            SetPlayerPedExpression(RP.Expressions[expressionName][1], true)
        end
    elseif DP then
        if DP.Expressions[expressionName] ~= nil then
            OnEmotePlay(DP.Expressions[expressionName])
        end
    else
        print("Contact to developer, because you are not using a EmoteMenu compatible!")
    end
end)

exports("EmoteCancel", EmoteCancel)
exports("CanCancelEmote", function(State)
    CanCancel = State == true
end)

exports("GetEmotes", function()
    return RP and RP or DP
end)

exports("GetConfig", function()
    return Config
end)
```

## Third Step:

1. **Open artz\_emotes folder** and go to **shared folder**, next **open config.lua**.
2. Set **parameters correct** and **translate language**.
3. **Done! Start your server.**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://artzalez.gitbook.io/artz-script-documents/scripts/artz-emotes-menu/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
