Add attitude to menu

This commit is contained in:
Sylundef
2017-11-17 19:17:19 +01:00
parent a8cba44cda
commit cdf6f3f052
2 changed files with 50 additions and 1 deletions
+20 -1
View File
@@ -19,6 +19,21 @@ Citizen.CreateThread(function()
end end
end) end)
function startAttitude(lib, anim)
Citizen.CreateThread(function()
local playerPed = GetPlayerPed(-1)
RequestAnimSet(anim)
while not HasAnimSetLoaded(anim) do
Citizen.Wait(0)
end
SetPedMovementClipset(playerPed, anim, true)
end)
end
function startAnim(lib, anim) function startAnim(lib, anim)
Citizen.CreateThread(function() Citizen.CreateThread(function()
@@ -100,7 +115,11 @@ function OpenAnimationsSubMenu(menu)
if type == 'scenario' then if type == 'scenario' then
startScenario(anim) startScenario(anim)
else else
startAnim(lib, anim) if type == 'attitude' then
startAttitude(lib, anim)
else
startAnim(lib, anim)
end
end end
end, end,
+30
View File
@@ -6,6 +6,7 @@ Config.Animations = {
name = 'festives', name = 'festives',
label = 'Festives', label = 'Festives',
items = { items = {
{label = "Fumer une cigarette", type = "scenario", data = {anim = "WORLD_HUMAN_SMOKING"}},
{label = "Jouer de la musique", type = "scenario", data = {anim = "WORLD_HUMAN_MUSICIAN"}}, {label = "Jouer de la musique", type = "scenario", data = {anim = "WORLD_HUMAN_MUSICIAN"}},
{label = "Dj", type = "anim", data = {lib = "anim@mp_player_intcelebrationmale@dj", anim = "dj"}}, {label = "Dj", type = "anim", data = {lib = "anim@mp_player_intcelebrationmale@dj", anim = "dj"}},
{label = "Boire une biere", type = "scenario", data = {anim = "WORLD_HUMAN_DRINKING"}}, {label = "Boire une biere", type = "scenario", data = {anim = "WORLD_HUMAN_DRINKING"}},
@@ -113,6 +114,35 @@ Config.Animations = {
} }
}, },
{
name = 'attitudem',
label = 'Attitudes',
items = {
{label = "Normal M", type = "attitude", data = {lib = "move_m@confident", anim = "move_m@confident"}},
{label = "Normal F", type = "attitude", data = {lib = "move_f@heels@c", anim = "move_f@heels@c"}},
{label = "Depressif", type = "attitude", data = {lib = "move_m@depressed@a", anim = "move_m@depressed@a"}},
{label = "Depressif F", type = "attitude", data = {lib = "move_f@depressed@a", anim = "move_f@depressed@a"}},
{label = "Business", type = "attitude", data = {lib = "move_m@business@a", anim = "move_m@business@a"}},
{label = "Determine", type = "attitude", data = {lib = "move_m@brave@a", anim = "move_m@brave@a"}},
{label = "Casual", type = "attitude", data = {lib = "move_m@casual@a", anim = "move_m@casual@a"}},
{label = "Trop mange", type = "attitude", data = {lib = "move_m@fat@a", anim = "move_m@fat@a"}},
{label = "Hipster", type = "attitude", data = {lib = "move_m@hipster@a", anim = "move_m@hipster@a"}},
{label = "Blesse", type = "attitude", data = {lib = "move_m@injured", anim = "move_m@injured"}},
{label = "Intimide", type = "attitude", data = {lib = "move_m@hurry@a", anim = "move_m@hurry@a"}},
{label = "Hobo", type = "attitude", data = {lib = "move_m@hobo@a", anim = "move_m@hobo@a"}},
{label = "Malheureux", type = "attitude", data = {lib = "move_m@sad@a", anim = "move_m@sad@a"}},
{label = "Muscle", type = "attitude", data = {lib = "move_m@muscle@a", anim = "move_m@muscle@a"}},
{label = "Choc", type = "attitude", data = {lib = "move_m@shocked@a", anim = "move_m@shocked@a"}},
{label = "Sombre", type = "attitude", data = {lib = "move_m@shadyped@a", anim = "move_m@shadyped@a"}},
{label = "Fatigue", type = "attitude", data = {lib = "move_m@buzzed", anim = "move_m@buzzed"}},
{label = "Pressee", type = "attitude", data = {lib = "move_m@hurry_butch@a", anim = "move_m@hurry_butch@a"}},
{label = "Fier", type = "attitude", data = {lib = "move_m@money", anim = "move_m@money"}},
{label = "Petite course", type = "attitude", data = {lib = "move_m@quick", anim = "move_m@quick"}},
{label = "Mangeuse d'homme", type = "attitude", data = {lib = "move_f@maneater", anim = "move_f@maneater"}},
{label = "Impertinent", type = "attitude", data = {lib = "move_f@sassy", anim = "move_f@sassy"}},
{label = "Arrogante", type = "attitude", data = {lib = "move_f@arrogant@a", anim = "move_f@arrogant@a"}},
}
},
{ {
name = 'porn', name = 'porn',
label = 'PEGI 21', label = 'PEGI 21',