diff --git a/client/main.lua b/client/main.lua index a2cc0263..b84a0813 100644 --- a/client/main.lua +++ b/client/main.lua @@ -19,6 +19,21 @@ Citizen.CreateThread(function() 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) Citizen.CreateThread(function() @@ -100,7 +115,11 @@ function OpenAnimationsSubMenu(menu) if type == 'scenario' then startScenario(anim) else - startAnim(lib, anim) + if type == 'attitude' then + startAttitude(lib, anim) + else + startAnim(lib, anim) + end end end, diff --git a/config.lua b/config.lua index 023391f7..fd7e3c61 100644 --- a/config.lua +++ b/config.lua @@ -6,6 +6,7 @@ Config.Animations = { name = 'festives', label = 'Festives', 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 = "Dj", type = "anim", data = {lib = "anim@mp_player_intcelebrationmale@dj", anim = "dj"}}, {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', label = 'PEGI 21',