RPEmotes

Installation for RPEmotes

Step 1

  1. Open your rpemotes resource and open client folder.

  2. Delete EmoteMenu.lua file.

  3. Open Emote.lua file with your code editor.

  4. Go to last line and paste this code:

exports("EmoteCommandStart", function(emoteName, textureVariation)
        EmoteCommandStart(nil, {emoteName, textureVariation}, nil)
end)
exports("WalkCommandStart", function(walkName)
    WalkCommandStart(nil, {walkName}, nil)
end)
exports("ExpressionCommandStart", function(expressionName)
    if RP then
        if RP.Expressions[expressionName] ~= nil then
            SetPlayerPedExpression(RP.Expressions[expressionName][1], true)
        end
    end
end)
exports("SharedCommandStart", function(emoteName)
    local target, distance = GetClosestPlayer()
    if (distance ~= -1 and distance < 3) then
        TriggerServerEvent("ServerEmoteRequest", GetPlayerServerId(target), emoteName)
        SimpleNotify(Config.Languages[lang]['sentrequestto'] .. GetPlayerName(target))
    else
        SimpleNotify(Config.Languages[lang]['nobodyclose'])
    end
end)
exports("EmoteCancel", EmoteCancel)
exports("CanCancelEmote", function(State)
	CanCancel = State == true
end)
exports("GetEmotes", function()
    return RP
end)
exports("GetConfig", function()
    return Config
end)

Step 2

  1. Open poke_emotemenu folder and open config.lua file.

  2. Configure your preferences.

  3. Add ensure poke_emotemenu in your server.cfg after rpemotes.

  4. Done!

Last updated