I press right and nothing happens
elseif IsButtonPressed(10,0) and IsButtonPressed(1, 0) then
PedSetActionNode(gPlayer,"/Global/G_Johnny", "Act/Anim/G_Johnny.act")
Here is my code
PedSetTypeToTypeAttitude(1, 13, 2)
PedSetTypeToTypeAttitude(2, 13, 2)
PedSetTypeToTypeAttitude(3, 13, 1)
PedSetTypeToTypeAttitude(5, 13, 1)
PedSetTypeToTypeAttitude(6, 13, 2)
PedSetTypeToTypeAttitude(11, 13, 2)
LoadStyles = function()
PlayerSetInvulnerable(true)
DisablePunishmentSystem(true)
LoadAnimationGroup("Russell")
LoadAnimationGroup("B_Striker")
LoadAnimationGroup("P_Striker")
LoadAnimationGroup("Boxing")
LoadAnimationGroup("Straf_Prep")
LoadAnimationGroup("F_Preps")
LoadAnimationGroup("G_Johnny")
LoadAnimationGroup("F_Greas")
LoadAnimationGroup("G_Grappler")
LoadAnimationGroup("G_Striker")
LoadAnimationGroup("Straf_Wrest")
LoadAnimationGroup("DO_Striker")
LoadAnimationGroup("DO_StrikeCombo")
LoadAnimationGroup("F_Douts")
LoadAnimationGroup("IDLE_JOCK_A")
LoadAnimationGroup("F_JOCKS")
LoadAnimationGroup("NPC_Mascot")
LoadAnimationGroup("J_Grappler")
LoadAnimationGroup("C_Wrestling")
LoadAnimationGroup("Earnest")
LoadAnimationGroup("SNERD_I")
LoadAnimationGroup("SNERD_S")
LoadAnimationGroup("N_Striker_B")
LoadAnimationGroup("F_Nerds")
LoadAnimationGroup("Nemesis")
LoadAnimationGroup("Halloween")
LoadAnimationGroup("TE_FEMALE")
LoadAnimationGroup("F_Girls")
LoadAnimationGroup("NPC_Adult")
LoadAnimationGroup("F_Adult")
LoadAnimationGroup("LE_ORDERLY")
LoadAnimationGroup("F_CRAZY")
LoadAnimationGroup("NPC_Principal")
LoadAnimationGroup("Authority")
LoadAnimationGroup("POI_SMOKING")
LoadAnimationGroup("Sitting_Boys")
LoadAnimationGroup("Hang_Talking")
LoadAnimationGroup("3_05")
LoadAnimationGroup("5_02")
collectgarbage()
end
MissionSetup = function()
l_0_0 = 1
PlayerSetHealth(200)
AreaTransitionXYZ(60, -773.293030, 363.286987, 6.396100)
DisablePunishmentSystem(true)
PedSetActionTree(gPlayer,"/Global/...........", "Act/Anim/.............act")
end
Action = function()
if IsButtonBeingReleased(2,0) and l_0_0 == 1 then
TextPrintString("Chicken", 4, 2)
elseif IsButtonBeingReleased(2,0) and l_0_0 == 2 then
TextPrintString("Potato", 4, 2)
elseif IsButtonBeingReleased(2,0) and l_0_0 == 3 then
TextPrintString("Modder", 4, 2)
elseif IsButtonBeingReleased(2,0) and l_0_0 == 4 then
TextPrintString("Well done mate", 4, 2)
end
end
Settings = function()
if IsButtonPressed(10,0) and IsButtonPressed(0, 0) then
PedSetActionNode(gPlayer,"/Global/..............", "Act/Anim/...........act")
elseif IsButtonPressed(10,0) and IsButtonPressed(3, 0) then
PedSetActionNode(gPlayer,"/Global/..............", "Act/Anim/.............act")
elseif IsButtonPressed(10,0) and IsButtonPressed(1, 0) then
PedSetActionNode(gPlayer,"/Global/G_Johnny", "Act/Anim/G_Johnny.act")
elseif IsButtonPressed(10,0) and IsButtonPressed(2, 0) then
PedSetActionNode(gPlayer,"/Global/........................", "Act/Anim/.............act")
elseif IsButtonPressed(10,0) and IsButtonPressed (9, 0) then
PedSetActionNode(gPlayer,"/Global/........", "Act/Anim/........act")
elseif IsButtonPressed(10,0) and IsButtonPressed (12, 0) then
SoundPlayScriptedSpeechEvent(...........)
elseif IsButtonPressed(10,0) and IsButtonPressed (15, 0) then
SoundPlayScriptedSpeechEvent(...........)
elseif IsButtonPressed(6,0) and IsButtonPressed (7, 0) then
PedSetActionNode(gPlayer,"/Global/....................", "Act/Anim/.........act")
end
end
UnLoadStyles = function()
UnLoadAnimationGroup("Russell")
UnLoadAnimationGroup("B_Striker")
UnLoadAnimationGroup("P_Striker")
UnLoadAnimationGroup("Boxing")
UnLoadAnimationGroup("Straf_Prep")
UnLoadAnimationGroup("F_Preps")
UnLoadAnimationGroup("G_Johnny")
UnLoadAnimationGroup("F_Greas")
UnLoadAnimationGroup("G_Grappler")
UnLoadAnimationGroup("G_Striker")
UnLoadAnimationGroup("Straf_Wrest")
UnLoadAnimationGroup("DO_Striker")
UnLoadAnimationGroup("DO_StrikeCombo")
UnLoadAnimationGroup("F_Douts")
UnLoadAnimationGroup("IDLE_JOCK_A")
UnLoadAnimationGroup("F_JOCKS")
UnLoadAnimationGroup("NPC_Mascot")
UnLoadAnimationGroup("J_Grappler")
UnLoadAnimationGroup("C_Wrestling")
UnLoadAnimationGroup("Earnest")
UnLoadAnimationGroup("SNERD_I")
UnLoadAnimationGroup("SNERD_S")
UnLoadAnimationGroup("N_Striker_B")
UnLoadAnimationGroup("F_Nerds")
UnLoadAnimationGroup("Nemesis")
UnLoadAnimationGroup("Halloween")
UnLoadAnimationGroup("TE_FEMALE")
UnLoadAnimationGroup("F_Girls")
UnLoadAnimationGroup("NPC_Adult")
UnLoadAnimationGroup("F_Adult")
UnLoadAnimationGroup("LE_ORDERLY")
UnLoadAnimationGroup("F_CRAZY")
UnLoadAnimationGroup("NPC_Principal")
UnLoadAnimationGroup("Authority")
UnLoadAnimationGroup("POI_SMOKING")
UnLoadAnimationGroup("Sitting_Boys")
UnLoadAnimationGroup("Hang_Talking")
UnLoadAnimationGroup("3_05")
UnLoadAnimationGroup("5_02")
end
main = function()
repeat
Action()
Settings()
Wait(0)
until not Alive
end
Can anyone fix