News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..
0 Members and 1 Guest are viewing this topic.
local F_Peds = {}LoopFunctions = function()repeatCheckForPeds()Wait(80)until not AliveendCheckForPeds = function()local P_H_P_L = PedGetWhoHitMeLast(gPlayer)local P_T_P = PedGetTargetPed(gPlayer)if PedIsValid(P_T_P) and PedGetHealth(P_T_P) > 1 thenif OnlyOnePedInstance(P_T_P) thenRegisterPed(P_T_P)endelseif PedIsValid(P_H_P_L) and PedGetHealth(P_H_P_L) > 1 thenif OnlyOnePedInstance(P_H_P_L) thenRegisterPed(P_H_P_L)endendfor i = 1,table.getn(F_Peds) doif PedIsValid(F_Peds[i]) thenlocal F_H_P_L = PedGetWhoHitMeLast(F_Peds[i])local F_T_P = PedGetTargetPed(F_Peds[i])if PedIsValid(F_T_P) and PedGetHealth(F_T_P) > 1 thenif OnlyOnePedInstance(F_T_P) and F_T_P ~= gPlayer thenRegisterPed(F_T_P)endendif PedIsValid(F_H_P_L) and PedGetHealth(F_H_P_L) > 1 thenif OnlyOnePedInstance(F_H_P_L) and F_H_P_L ~= gPlayer thenRegisterPed(F_H_P_L)endendendendendOnlyOnePedInstance = function(PedToCheck)local Match = falsefor i = 1,table.getn(F_Peds) do if PedToCheck == F_Peds[i] then Match = true endendif Match thenreturn falseelsereturn trueendendRegisterPed = function(Ped)table.insert(F_Peds,Ped)endCheckPeds = function()for i = 1,table.getn(F_Peds) do if not PedIsValid(F_Peds[i]) or PedIsDead(F_Peds[i]) then table.remove(F_Peds,i) endendendCyclePeds = function()for i = 1,table.getn(F_Peds) do FactionAndNameBased(F_Peds[i])endendFactionAndNameBased = function(FI_Ped)local FI_Ped_F = PedGetFaction(FI_Ped)local FI_Ped_N = PedGetName(FI_Ped)local RDNM_1 = math.random(1100)local RDNM_2 = math.random(1100)local RDNM_3 = math.random(1100)local RDNM_4 = math.random(1100)local RDNM_5 = math.random(1200)local RDNM_6 = math.random(1200)local RDNM_7 = math.random(1300)local RDNM_8 = math.random(1300)local RDNM_9 = math.random(1400)local RDNM_10 = math.random(1400)if PedIsValid(FI_Ped) and PedGetHealth(FI_Ped) > 1 thenif PedIsInCombat(FI_Ped) thenif PedGetGrappleTargetPed(FI_Ped) < 0 then-------------------Name based----------------------elseif RDNM_1 == RDNM_2 and FI_Ped_N == "N_Peanut" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/G_Johnny/Offense/Special/SpecialActions/Grapples/Dash", "Act/Anim/G_Johnny.act")elseif RDNM_3 == RDNM_4 and FI_Ped_N == "N_Peanut" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Medium/Strikes/HeavyAttacks/JackieKick", "Act/Anim/Nemesis.act")elseif RDNM_5 == RDNM_6 and FI_Ped_N == "N_Peanut" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB/HeavyAttacks/SuperUppercut", "Act/Anim/Nemesis.act")elseif RDNM_1 == RDNM_2 and FI_Ped_N == "N_Ricky" thenPedSetActionNode(FI_Ped, "/Global/G_Johnny/Offense/Special/SpecialActions/Grapples/Dash", "Act/Anim/G_Johnny.act")elseif RDNM_3 == RDNM_4 and FI_Ped_N == "N_Ricky" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 2 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Medium/Strikes/HeavyAttacks/JackieKick", "Act/Anim/Nemesis.act")elseif RDNM_5 == RDNM_6 and FI_Ped_N == "N_Ricky" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB/HeavyAttacks/SuperUppercut", "Act/Anim/Nemesis.act")elseif RDNM_1 == RDNM_2 and FI_Ped_N == "N_Gary" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Short/Strikes/HeavyAttacks/HeavyPunch1", "Act/Anim/Nemesis.act")elseif RDNM_3 == RDNM_4 and FI_Ped_N == "N_Gary" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 2 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Medium/Strikes/HeavyAttacks/JackieKick", "Act/Anim/Nemesis.act")elseif RDNM_5 == RDNM_6 and FI_Ped_N == "N_Gary" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/BOSS_Darby/Offense/Short/Grapples/HeavyAttacks/Catch_Throw", "Act/Anim/BOSS_Darby.act")elseif RDNM_7 == RDNM_8 and FI_Ped_N == "N_Gary" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB/HeavyAttacks/SuperUppercut", "Act/Anim/Nemesis.act")elseif RDNM_9 == RDNM_10 and FI_Ped_N == "N_Gary" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Russell_102/Offense/Short/Medium/RisingAttacks", "Act/Anim/Russell_102.act")elseif RDNM_1 == RDNM_2 and FI_Ped_N == "N_Russell" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Russell_102/Offense/Short/Medium/RisingAttacks", "Act/Anim/Russell_102.act")elseif RDNM_3 == RDNM_4 and FI_Ped_N == "N_Russell" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/BOSS_Russell/Offense/Special/Invincible/HeadButt/HeadButt_AnticStart/", "Act/Anim/BOSS_Russell.act")elseif RDNM_5 == RDNM_6 and FI_Ped_N == "N_Russell" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/BOSS_Russell/Offense/Medium/Strikes/Unblockable/DoubleAxeHandle", "Act/Anim/BOSS_Russell.act")elseif RDNM_7 == RDNM_8 and FI_Ped_N == "N_Russell" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB/HeavyAttacks/SuperUppercut", "Act/Anim/Nemesis.act")elseif RDNM_1 == RDNM_2 and FI_Ped_N == "N_Troy" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Russell_102/Offense/Short/Medium/RisingAttacks", "Act/Anim/Russell_102.act")elseif RDNM_3 == RDNM_4 and FI_Ped_N == "N_Troy" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/BOSS_Russell/Offense/Medium/Strikes/Unblockable/DoubleAxeHandle", "Act/Anim/BOSS_Russell.act")-------------------Faction based-------------------elseif RDNM_1 == RDNM_2 and FI_Ped_F == 2 thenPedSetActionNode(FI_Ped, "/Global/J_Damon/Offense/SpecialStart/StartRun", "Act/Anim/J_Damon.act")elseif RDNM_1 == RDNM_2 and FI_Ped_F == 5 and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/BOSS_Darby/Offense/Short/Grapples/HeavyAttacks/Catch_Throw", "Act/Anim/BOSS_Darby.act")elseif RDNM_3 == RDNM_4 and FI_Ped_F == 5 and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB/HeavyAttacks/SuperUppercut/Knee", "Act/Anim/Nemesis.act")elseif RDNM_1 == RDNM_2 and FI_Ped_F == 3 and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB/HeavyAttacks/SuperUppercut", "Act/Anim/Nemesis.act")elseif RDNM_3 == RDNM_4 and FI_Ped_F == 3 and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 2 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Medium/Strikes/HeavyAttacks/JackieKick", "Act/Anim/Nemesis.act")elseif RDNM_5 == RDNM_6 and FI_Ped_F == 3 and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Short/Strikes/HeavyAttacks/HeavyPunch1", "Act/Anim/Nemesis.act")elseif RDNM_1 == RDNM_2 and FI_Ped_F == 1 and PedGetWeapon(FI_Ped) == 305 thenPedSetActionNode(FI_Ped, "/Global/N_Earnest/Offense/FireSpudGun", "Act/Anim/N_Earnest.act")elseif RDNM_3 == RDNM_4 and FI_Ped_F == 1 and PedGetWeapon(FI_Ped) == 307 thenPedSetActionNode(FI_Ped, "/Global/N_Earnest/Offense/ThrowBombs", "Act/Anim/N_Earnest.act")elseif RDNM_5 == RDNM_6 and FI_Ped_F == 1 and PedGetWeapon(FI_Ped) == 301 thenPedSetActionNode(FI_Ped, "/Global/N_Earnest/Offense/ThrowBombs", "Act/Anim/N_Earnest.act")endendendendmain = function() LoadAnimationGroup("Authority") LoadAnimationGroup("Boxing") LoadAnimationGroup("Earnest") LoadAnimationGroup("B_Striker") LoadAnimationGroup("CV_Female") LoadAnimationGroup("CV_Male") LoadAnimationGroup("DO_Edgar") LoadAnimationGroup("DO_Grap") LoadAnimationGroup("DO_StrikeCombo") LoadAnimationGroup("DO_Striker") LoadAnimationGroup("F_Adult") LoadAnimationGroup("F_BULLY") LoadAnimationGroup("F_Crazy") LoadAnimationGroup("F_Douts") LoadAnimationGroup("F_Girls") LoadAnimationGroup("F_Greas") LoadAnimationGroup("F_Jocks") LoadAnimationGroup("F_Nerds") LoadAnimationGroup("F_OldPeds") LoadAnimationGroup("F_Pref") LoadAnimationGroup("F_Preps") LoadAnimationGroup("G_Grappler") LoadAnimationGroup("G_Johnny") LoadAnimationGroup("G_Striker") LoadAnimationGroup("J_Damon") LoadAnimationGroup("J_Grappler") LoadAnimationGroup("J_Melee") LoadAnimationGroup("J_Ranged") LoadAnimationGroup("J_Striker") LoadAnimationGroup("Nemesis") LoadAnimationGroup("N_Ranged") LoadAnimationGroup("N_Striker") LoadAnimationGroup("N_Striker_A") LoadAnimationGroup("N_Striker_B") LoadAnimationGroup("P_Grappler") LoadAnimationGroup("P_Striker") LoadAnimationGroup("Russell") LoadAnimationGroup("Russell_Pbomb") LoadAnimationGroup("Straf_Dout") LoadAnimationGroup("Straf_Fat") LoadAnimationGroup("Straf_Female") LoadAnimationGroup("Straf_Male") LoadAnimationGroup("Straf_Nerd") LoadAnimationGroup("Straf_Prep") LoadAnimationGroup("Straf_Savage") LoadAnimationGroup("Straf_Wrest") LoadAnimationGroup("TE_Female") CreateThread("LoopFunctions") --DisablePunishmentSystem(true) repeat CheckPeds() CyclePeds() Wait(10) until not Aliveend F_AttendedClass = function() if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then return end SetSkippedClass(false) PlayerSetPunishmentPoints(0)end F_MissedClass = function() if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then return end SetSkippedClass(true) StatAddToInt(166)end F_AttendedCurfew = function() if not PedInConversation(gPlayer) and not MissionActive() then TextPrintString("You got home in time for curfew", 4) endend F_MissedCurfew = function() if not PedInConversation(gPlayer) and not MissionActive() then TextPrint("TM_TIRED5", 4, 2) endend F_StartClass = function() if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then return end F_RingSchoolBell() local l_6_0 = PlayerGetPunishmentPoints() + GetSkippingPunishment()end F_EndClass = function() if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then return end F_RingSchoolBell()end F_StartMorning = function() F_UpdateTimeCycle()end F_EndMorning = function() F_UpdateTimeCycle()end F_StartLunch = function() if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then F_UpdateTimeCycle() return end F_UpdateTimeCycle()end F_EndLunch = function() F_UpdateTimeCycle()end F_StartAfternoon = function() F_UpdateTimeCycle()end F_EndAfternoon = function() F_UpdateTimeCycle()end F_StartEvening = function() F_UpdateTimeCycle()end F_EndEvening = function() F_UpdateTimeCycle()end F_StartCurfew_SlightlyTired = function() F_UpdateTimeCycle()end F_StartCurfew_Tired = function() F_UpdateTimeCycle()end F_StartCurfew_MoreTired = function() F_UpdateTimeCycle()end F_StartCurfew_TooTired = function() F_UpdateTimeCycle()end F_EndCurfew_TooTired = function() F_UpdateTimeCycle()end F_EndTired = function() F_UpdateTimeCycle()end F_Nothing = function()end F_ClassWarning = function() if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then return end local l_23_0 = math.random(1, 2)end F_UpdateTimeCycle = function() if not IsMissionCompleated("1_B") then local l_24_0 = GetCurrentDay(false) if l_24_0 < 0 or l_24_0 > 2 then SetCurrentDay(0) end end F_UpdateCurfew()end F_UpdateCurfew = function() local l_25_0 = shared.gCurfewRules if not l_25_0 then l_25_0 = F_CurfewDefaultRules end l_25_0()end F_CurfewDefaultRules = function() local l_26_0 = ClockGet() if l_26_0 >= 23 or l_26_0 < 7 then shared.gCurfew = true else shared.gCurfew = false endend
Making peds in freeroam use different moves.Make sure to backup your script files.Downloadhttp://www.youtube.com/watch?v=hpCU4CClEtsEdit: Updated the scriptCode: [Select]local F_Peds = {}LoopFunctions = function()repeatCheckForPeds()Wait(80)until not AliveendCheckForPeds = function()local P_H_P_L = PedGetWhoHitMeLast(gPlayer)local P_T_P = PedGetTargetPed(gPlayer)if PedIsValid(P_T_P) and PedGetHealth(P_T_P) > 1 thenif OnlyOnePedInstance(P_T_P) thenRegisterPed(P_T_P)endelseif PedIsValid(P_H_P_L) and PedGetHealth(P_H_P_L) > 1 thenif OnlyOnePedInstance(P_H_P_L) thenRegisterPed(P_H_P_L)endendfor i = 1,table.getn(F_Peds) doif PedIsValid(F_Peds[i]) thenlocal F_H_P_L = PedGetWhoHitMeLast(F_Peds[i])local F_T_P = PedGetTargetPed(F_Peds[i])if PedIsValid(F_T_P) and PedGetHealth(F_T_P) > 1 thenif OnlyOnePedInstance(F_T_P) and F_T_P ~= gPlayer thenRegisterPed(F_T_P)endendif PedIsValid(F_H_P_L) and PedGetHealth(F_H_P_L) > 1 thenif OnlyOnePedInstance(F_H_P_L) and F_H_P_L ~= gPlayer thenRegisterPed(F_H_P_L)endendendendendOnlyOnePedInstance = function(PedToCheck)local Match = falsefor i = 1,table.getn(F_Peds) do if PedToCheck == F_Peds[i] then Match = true endendif Match thenreturn falseelsereturn trueendendRegisterPed = function(Ped)table.insert(F_Peds,Ped)endCheckPeds = function()for i = 1,table.getn(F_Peds) do if not PedIsValid(F_Peds[i]) or PedIsDead(F_Peds[i]) then table.remove(F_Peds,i) endendendCyclePeds = function()for i = 1,table.getn(F_Peds) do FactionAndNameBased(F_Peds[i])endendFactionAndNameBased = function(FI_Ped)local FI_Ped_F = PedGetFaction(FI_Ped)local FI_Ped_N = PedGetName(FI_Ped)local RDNM_1 = math.random(1100)local RDNM_2 = math.random(1100)local RDNM_3 = math.random(1100)local RDNM_4 = math.random(1100)local RDNM_5 = math.random(1200)local RDNM_6 = math.random(1200)local RDNM_7 = math.random(1300)local RDNM_8 = math.random(1300)local RDNM_9 = math.random(1400)local RDNM_10 = math.random(1400)if PedIsValid(FI_Ped) and PedGetHealth(FI_Ped) > 1 thenif PedIsInCombat(FI_Ped) thenif PedGetGrappleTargetPed(FI_Ped) < 0 then-------------------Name based----------------------elseif RDNM_1 == RDNM_2 and FI_Ped_N == "N_Peanut" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/G_Johnny/Offense/Special/SpecialActions/Grapples/Dash", "Act/Anim/G_Johnny.act")elseif RDNM_3 == RDNM_4 and FI_Ped_N == "N_Peanut" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Medium/Strikes/HeavyAttacks/JackieKick", "Act/Anim/Nemesis.act")elseif RDNM_5 == RDNM_6 and FI_Ped_N == "N_Peanut" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB/HeavyAttacks/SuperUppercut", "Act/Anim/Nemesis.act")elseif RDNM_1 == RDNM_2 and FI_Ped_N == "N_Ricky" thenPedSetActionNode(FI_Ped, "/Global/G_Johnny/Offense/Special/SpecialActions/Grapples/Dash", "Act/Anim/G_Johnny.act")elseif RDNM_3 == RDNM_4 and FI_Ped_N == "N_Ricky" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 2 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Medium/Strikes/HeavyAttacks/JackieKick", "Act/Anim/Nemesis.act")elseif RDNM_5 == RDNM_6 and FI_Ped_N == "N_Ricky" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB/HeavyAttacks/SuperUppercut", "Act/Anim/Nemesis.act")elseif RDNM_1 == RDNM_2 and FI_Ped_N == "N_Gary" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Short/Strikes/HeavyAttacks/HeavyPunch1", "Act/Anim/Nemesis.act")elseif RDNM_3 == RDNM_4 and FI_Ped_N == "N_Gary" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 2 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Medium/Strikes/HeavyAttacks/JackieKick", "Act/Anim/Nemesis.act")elseif RDNM_5 == RDNM_6 and FI_Ped_N == "N_Gary" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/BOSS_Darby/Offense/Short/Grapples/HeavyAttacks/Catch_Throw", "Act/Anim/BOSS_Darby.act")elseif RDNM_7 == RDNM_8 and FI_Ped_N == "N_Gary" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB/HeavyAttacks/SuperUppercut", "Act/Anim/Nemesis.act")elseif RDNM_9 == RDNM_10 and FI_Ped_N == "N_Gary" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Russell_102/Offense/Short/Medium/RisingAttacks", "Act/Anim/Russell_102.act")elseif RDNM_1 == RDNM_2 and FI_Ped_N == "N_Russell" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Russell_102/Offense/Short/Medium/RisingAttacks", "Act/Anim/Russell_102.act")elseif RDNM_3 == RDNM_4 and FI_Ped_N == "N_Russell" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/BOSS_Russell/Offense/Special/Invincible/HeadButt/HeadButt_AnticStart/", "Act/Anim/BOSS_Russell.act")elseif RDNM_5 == RDNM_6 and FI_Ped_N == "N_Russell" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/BOSS_Russell/Offense/Medium/Strikes/Unblockable/DoubleAxeHandle", "Act/Anim/BOSS_Russell.act")elseif RDNM_7 == RDNM_8 and FI_Ped_N == "N_Russell" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB/HeavyAttacks/SuperUppercut", "Act/Anim/Nemesis.act")elseif RDNM_1 == RDNM_2 and FI_Ped_N == "N_Troy" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Russell_102/Offense/Short/Medium/RisingAttacks", "Act/Anim/Russell_102.act")elseif RDNM_3 == RDNM_4 and FI_Ped_N == "N_Troy" and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/BOSS_Russell/Offense/Medium/Strikes/Unblockable/DoubleAxeHandle", "Act/Anim/BOSS_Russell.act")-------------------Faction based-------------------elseif RDNM_1 == RDNM_2 and FI_Ped_F == 2 thenPedSetActionNode(FI_Ped, "/Global/J_Damon/Offense/SpecialStart/StartRun", "Act/Anim/J_Damon.act")elseif RDNM_1 == RDNM_2 and FI_Ped_F == 5 and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/BOSS_Darby/Offense/Short/Grapples/HeavyAttacks/Catch_Throw", "Act/Anim/BOSS_Darby.act")elseif RDNM_3 == RDNM_4 and FI_Ped_F == 5 and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB/HeavyAttacks/SuperUppercut/Knee", "Act/Anim/Nemesis.act")elseif RDNM_1 == RDNM_2 and FI_Ped_F == 3 and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB/HeavyAttacks/SuperUppercut", "Act/Anim/Nemesis.act")elseif RDNM_3 == RDNM_4 and FI_Ped_F == 3 and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 2 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Medium/Strikes/HeavyAttacks/JackieKick", "Act/Anim/Nemesis.act")elseif RDNM_5 == RDNM_6 and FI_Ped_F == 3 and DistanceBetweenPeds2D(PedGetTargetPed(FI_Ped), FI_Ped) <= 1.5 thenPedSetActionNode(FI_Ped, "/Global/Nemesis/Offense/Short/Strikes/HeavyAttacks/HeavyPunch1", "Act/Anim/Nemesis.act")elseif RDNM_1 == RDNM_2 and FI_Ped_F == 1 and PedGetWeapon(FI_Ped) == 305 thenPedSetActionNode(FI_Ped, "/Global/N_Earnest/Offense/FireSpudGun", "Act/Anim/N_Earnest.act")elseif RDNM_3 == RDNM_4 and FI_Ped_F == 1 and PedGetWeapon(FI_Ped) == 307 thenPedSetActionNode(FI_Ped, "/Global/N_Earnest/Offense/ThrowBombs", "Act/Anim/N_Earnest.act")elseif RDNM_5 == RDNM_6 and FI_Ped_F == 1 and PedGetWeapon(FI_Ped) == 301 thenPedSetActionNode(FI_Ped, "/Global/N_Earnest/Offense/ThrowBombs", "Act/Anim/N_Earnest.act")endendendendmain = function() LoadAnimationGroup("Authority") LoadAnimationGroup("Boxing") LoadAnimationGroup("Earnest") LoadAnimationGroup("B_Striker") LoadAnimationGroup("CV_Female") LoadAnimationGroup("CV_Male") LoadAnimationGroup("DO_Edgar") LoadAnimationGroup("DO_Grap") LoadAnimationGroup("DO_StrikeCombo") LoadAnimationGroup("DO_Striker") LoadAnimationGroup("F_Adult") LoadAnimationGroup("F_BULLY") LoadAnimationGroup("F_Crazy") LoadAnimationGroup("F_Douts") LoadAnimationGroup("F_Girls") LoadAnimationGroup("F_Greas") LoadAnimationGroup("F_Jocks") LoadAnimationGroup("F_Nerds") LoadAnimationGroup("F_OldPeds") LoadAnimationGroup("F_Pref") LoadAnimationGroup("F_Preps") LoadAnimationGroup("G_Grappler") LoadAnimationGroup("G_Johnny") LoadAnimationGroup("G_Striker") LoadAnimationGroup("J_Damon") LoadAnimationGroup("J_Grappler") LoadAnimationGroup("J_Melee") LoadAnimationGroup("J_Ranged") LoadAnimationGroup("J_Striker") LoadAnimationGroup("Nemesis") LoadAnimationGroup("N_Ranged") LoadAnimationGroup("N_Striker") LoadAnimationGroup("N_Striker_A") LoadAnimationGroup("N_Striker_B") LoadAnimationGroup("P_Grappler") LoadAnimationGroup("P_Striker") LoadAnimationGroup("Russell") LoadAnimationGroup("Russell_Pbomb") LoadAnimationGroup("Straf_Dout") LoadAnimationGroup("Straf_Fat") LoadAnimationGroup("Straf_Female") LoadAnimationGroup("Straf_Male") LoadAnimationGroup("Straf_Nerd") LoadAnimationGroup("Straf_Prep") LoadAnimationGroup("Straf_Savage") LoadAnimationGroup("Straf_Wrest") LoadAnimationGroup("TE_Female") CreateThread("LoopFunctions") --DisablePunishmentSystem(true) repeat CheckPeds() CyclePeds() Wait(10) until not Aliveend F_AttendedClass = function() if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then return end SetSkippedClass(false) PlayerSetPunishmentPoints(0)end F_MissedClass = function() if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then return end SetSkippedClass(true) StatAddToInt(166)end F_AttendedCurfew = function() if not PedInConversation(gPlayer) and not MissionActive() then TextPrintString("You got home in time for curfew", 4) endend F_MissedCurfew = function() if not PedInConversation(gPlayer) and not MissionActive() then TextPrint("TM_TIRED5", 4, 2) endend F_StartClass = function() if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then return end F_RingSchoolBell() local l_6_0 = PlayerGetPunishmentPoints() + GetSkippingPunishment()end F_EndClass = function() if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then return end F_RingSchoolBell()end F_StartMorning = function() F_UpdateTimeCycle()end F_EndMorning = function() F_UpdateTimeCycle()end F_StartLunch = function() if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then F_UpdateTimeCycle() return end F_UpdateTimeCycle()end F_EndLunch = function() F_UpdateTimeCycle()end F_StartAfternoon = function() F_UpdateTimeCycle()end F_EndAfternoon = function() F_UpdateTimeCycle()end F_StartEvening = function() F_UpdateTimeCycle()end F_EndEvening = function() F_UpdateTimeCycle()end F_StartCurfew_SlightlyTired = function() F_UpdateTimeCycle()end F_StartCurfew_Tired = function() F_UpdateTimeCycle()end F_StartCurfew_MoreTired = function() F_UpdateTimeCycle()end F_StartCurfew_TooTired = function() F_UpdateTimeCycle()end F_EndCurfew_TooTired = function() F_UpdateTimeCycle()end F_EndTired = function() F_UpdateTimeCycle()end F_Nothing = function()end F_ClassWarning = function() if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then return end local l_23_0 = math.random(1, 2)end F_UpdateTimeCycle = function() if not IsMissionCompleated("1_B") then local l_24_0 = GetCurrentDay(false) if l_24_0 < 0 or l_24_0 > 2 then SetCurrentDay(0) end end F_UpdateCurfew()end F_UpdateCurfew = function() local l_25_0 = shared.gCurfewRules if not l_25_0 then l_25_0 = F_CurfewDefaultRules end l_25_0()end F_CurfewDefaultRules = function() local l_26_0 = ClockGet() if l_26_0 >= 23 or l_26_0 < 7 then shared.gCurfew = true else shared.gCurfew = false endend