Three years later this is STILL the go to resource for emotes. Always appreciate your work @Dullpear !
(Removed due to advertising)
Hi all.
First of all I will start by saying that I am new to lua scripting, so bear with me. I have a dumb question.
We are calling a sandwich emote from a different script when we are eating by using this command:
exports[āanimsā]:PlayEmote(āsandwichā)
What I am not sure about is, when I am done with my eating, how do I stop the animation from the other script? I canāt seem to find a way.
I actually figured this out already, so you can ignore my previous question. I do have one question though.
How can I make it so that if I call the animation from another script that it ignores the enable/disable movement option in the UI, and always allow movement when the animation is called from the other script?
@Milkman00 youāre best to create a new discussion so people can answer your questions
Hello! We have an issue where players exploit the keybind options, is there a way to remove the ability to keybind emotes even through f8?
Hey, can you make more gang signs and hands in pockets emotes? Overall more street gang emotes, such as carrying maybe a gun or showing it off, showing off a very small brick of weedā¦ that kind of stuffā¦ thank you
Already done
do you by chance provide support for this? if so any time I change anything at all in the config I get errors saying āAttempt to index a nil valueā I have not changed anything with the script itself just the config. If you would like pictures, tell me and I can message them to you.
You might have done something wrong inside the config, what are you trying to do exactly?
This is my config, all I did was change a few things
config.lua (23.7 KB)
Iām in bed with Covid unfortunately so feel free to post photos and explain what you tried to change and the exact error you get.
Itās probably something to do with formatting.
oh Iām super sorry to hear that, so just to make it simple, I deleted every trace of dpemotes entirely, added it back, and simply changed the button from āF5ā to āF3ā just deleting the 5 and adding 3, I get this exact error wihout the quotes: āattempt to index a nil value (global āConfigā)ā thereās nothing more in the console other than it saying it couldnāt load the config.lua
Delete your server cache, shut down the server, make sure you havenāt changed anything else. Can you try a different key and see if that works? Try F9 for example.
Alternatively, you can set the menu key (for yourself) in the āpause menuā however other plays will still be F5 or F9.
Iāll have @AvaN0x elaborate on this and try to assist when heās not munching down on BBQ Fried Frog Legs, snails and pasta
lol all good, I really appreciate the help, sorry for bothering you, and hope you start feeling better soon!
Youāre not a bothersome
Try using the key code thing maybe?
https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
well I appreciate it, ok Iāll try that, Iām currently clearing my serverās cache, once again thank you!
I think you have an error in your Config file, do you get any error while starting the script ? (Try to restart it and see if there are any errors)
Yeah when I restart it, it says āattempt to index a nil value (global āConfigā)ā and failed to load config.lua, however it does say it started the script, but still doesnāt work, idk if that is important or not.
Oh, you are alive! only took 10 hrs to get a reply xD