[Release] Enhanced emotes

Based on emote scripts from Dolware and gui script from Ideo
This script is used to show emotes.

Controller users:

  • Down arrow to show/hide menu
  • Left/Right to navigate
  • A (or X on playstation controller i think) to validate

Keyboard users:

  • Down arrow to show/hide menu
  • Left/Right to navigate
  • Enter to validate

Those are default sellphone bindings, if you changed it, refer to sellphone binding menu on your game.

Enjoy !

Download: https://github.com/Lulzboat-Mods/Enhanced-emotes

Credits:
GUI script: [Release] GUI Script - v0.8
Emote script: Emotes, Loadouts, ShowID, StoreWeapons, MDT. Discontinued - we apologize

10 Likes

How do I move the GUI can someone show the code?

1 Like

If i continue to work on it, i will improve the mod with a better UI. But atm, i dont really know how to move it :smiley:
Sorry

Is possible to change the key to “Z” ??
For server side.

They are 3 keys on server side :smiley:
But anyway, you can change by finding using these code: https://wiki.fivem.net/wiki/Controls
Find the one who correspond to Z for you, and copy it into your script

1 Like

And it is possible to block the emotes in a vehicle

This should do the trick -> https://puu.sh/vx1EZ.png

I assume you can translate this like:

local playerPed = GetPlayerPed(-1)
local isSitting – I AM A BOOLEAN

if playerPed ~= -1 then
isSitting = IsPedSittingInAnyVehicle(playerPed)
end

Then, if you find out that isSitting is true, you dont play the emote.
All the code here is untested, and i wont test it. You can get help on Discord if it dont work :slight_smile:

1 Like

Thank you friend I will put it :ok_hand:

Can you add a permission level for access, for example i want users have permission level 2 can access ?
Do you have a date for a better UI ?

hey is there a better way to sit because doesn’t work properly the server soe have the sitting working where its automatic.

block the emotes in a vehicle

– Check if player is in a vehicle
function IsInVehicle()
local ply = GetPlayerPed(-1)
if IsPedSittingInAnyVehicle(ply) then
return false
else
return true
end
end

Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if (IsInVehicle()) then
if IsControlJustPressed(1, 178) then – INPUT_CELLPHONE_DOWN
InitMenu()
Menu.hidden = not Menu.hidden
elseif IsControlJustPressed(1, 32) then – INPUT_MOVE_UP_ONLY
ClearPedTasks(ped);
playing_emote = false
end
end
Menu.renderGUI()
end
end)

I’m not working anymore on this script.
So, maybe one day, maybe never.
This script just give you bases to create a better one on your own, like boubi is actually doing.

Good luck :slight_smile:

1 Like

** This script just give you bases to create a better one on your own ** okayy…

BUT can anyone here tell me what’s wrong with my text to a ‘dance animation call’:

if ped then
	TaskStartScenarioInPlace(ped, "CODE_HUMAN_STRIP_CLUB_PRIVATE_DANCE", 0, true);
	playing_emote = true;
end

Its doesn’t work :sweat:… Thanks.

4 things are needed to add an emote:

  • Add an entry into server.lua emotes variable
  • Register a net event into client.lua
  • Handle the event into client.lua
  • Add the corresponding event into the gui menu (if you want to)

Then you can paste your code into your new event handler.

Cheers

Hi Shuzu :relaxed:…

All this I have done and if I write this:
TaskStartScenarioInPlace(ped, “WORLD_HUMAN_BUM_SLUMPED”, 0, true);

It works fine, but it is not a ‘dance function’ :grinning:. Therefore I think I use a wrong text to call the dance animation :kissing:.

Any one can provide the list of Emotes available in GTA V please ?

1 Like

downloaded this and installed it but removed it due to the issue of being able to use them in vehicles, i did try what Boubi wrote but i messed it up more as my character fell through the floor and only way to fix it was by restarting the server. how would i add Boubi’s code and making it work? thanks in advance for any help.

Where we need to put this to block the emotes in a vehicle ?

just uploaded this version and no errors appear when starting the server but nothing is happening in game when pressing down with arrows.

@Boubi