Zuqaa
April 10, 2017, 4:25am
1
I need a list of the animations and the tuto for execute a Animation when a player click on the name of the Animation
I have make a code for test…
local applau
local carte
RegisterNUICallback("animation", function(data, cb)
local action = data.action
if action == "applau" then
TaskINSTERTANIMATION(GetPlayerPed(-1), 1000, GetPlayerPed(-1), -1, true)
drawNotification("~g~You Applaud")
elseif action == "carte" then
drawNotification("~g~You Check The Map")
end
cb("ok")
end)
Zuqaa
April 10, 2017, 1:09pm
2
What is the Animation for Applaud pls ?
Scapin
April 10, 2017, 1:16pm
3
Hey Zuqaa
I follow your work and hope to see that out soon
Maybe this YT video can help you
Zuqaa
April 10, 2017, 1:20pm
4
Thx i have find the animation, its cheering
1 Like
Zuqaa
April 10, 2017, 1:21pm
5
Now i try to test the addon for check if its working
Scapin
April 10, 2017, 1:23pm
6
Hope that works
Good Luck Zuqaa, and please share us your script when it’s ok
Thank you.
Zuqaa
April 10, 2017, 1:23pm
7
Yep np i made a Personal Menu
1 Like
Zuqaa
April 10, 2017, 1:32pm
8
He doesnt work my code is bad… u have a good code for execute a animation(the good native if possible) ?
Are you just trying to execute an animation?
Zuqaa
April 10, 2017, 2:11pm
10
Yes i have trying, and it doesnt work
Is what you tried in your original post?
Zuqaa
April 10, 2017, 2:41pm
12
Yes and all commands doesnt work
Formex
May 10, 2017, 10:42pm
14
EN : Have you fix it, i’m a little boring of this me too… ahah
FR : T’as trouvé? Car ça me pète les couilles aussi !!!
EDIT : Done ! Sry
Citizen.CreateThread(function()
local pid = PlayerPedId()
RequestAnimDict(“friends”)
RequestAnimDict(“friends@frj”)
RequestAnimDict(“friends@frj@ig_1”)
while (not HasAnimDictLoaded(“friends@frj@ig_1”)) do Citizen.Wait(0) end
TaskPlayAnim(pid,“friends@frj@ig_1”,“wave_a”,1.0,-1.0, 5000, 0, 1, true, true, true)
end)
and
Animations List
You just have to replace the actions with those of your choice
Yoan
May 11, 2017, 2:31am
16
emotes = {
["/smoke"] = { cmd = '/smoke', event = 'playSmokeEmote' },
}
after :
RegisterNetEvent('playSmokeEmote');
playing_emote = false;
AddEventHandler('playSmokeEmote', function()
ped = GetPlayerPed(-1);
if ped then
TaskStartScenarioInPlace(ped, "WORLD_HUMAN_SMOKING", 0, true);
playing_emote = true;
end
Menu.hidden = true
end)
Menu.addButton("Fumer", "TriggerEvent", emotes["/smoke"].event)
exemple for smock emote in my menu
BqRzA
May 11, 2017, 2:47am
17
How to use this function in a menu plz ?
You can also use this:
local playing_emote = false;
(At the beginning of the file)
and:
TaskStartScenarioInPlace(ped, "WORLD_HUMAN_SMOKING", 0, true);
playing_emote = true;
BqRzA
May 11, 2017, 1:40pm
20
Ty for help but i need to use this function
Citizen.CreateThread(function()
local pid = PlayerPedId()
RequestAnimDict(“friends”)
RequestAnimDict(“friends@frj”)
RequestAnimDict(“friends@frj@ig_1”)
while (not HasAnimDictLoaded(“friends@frj@ig_1”)) do Citizen.Wait(0) end
TaskPlayAnim(pid,“friends@frj@ig_1”,“wave_a”,1.0,-1.0, 5000, 0, 1, true, true, true)
end)
I have already the function for the “world_human_…” but i need to use amb@code_human_in_car_mp_actions@dance@bodhi@rds@base this for exemple
with world_human_… i’m limited with 10 - 15 animation while with http://docs.ragepluginhook.net/html/62951c37-a440-478c-b389-c471230ddfc5.htm#amb@world_human_cheering@male_eSection i can see more than 50 animations
thx for help