RPEmotes
Installation for RPEmotes
Step 1
Open your rpemotes resource and open client folder.
Delete EmoteMenu.lua file.
Open Emote.lua file with your code editor.
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
Open poke_emotemenu folder and open config.lua file.
Configure your preferences.
Add
ensure poke_emotemenuin your server.cfg after rpemotes.Done!
Last updated