Altamurenza

Bully AE: Untitled Mod V3

Jan 27th, 2018 (edited)
2,802
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 118.80 KB | None | 0 0
  1. -- Untitled Mod V3
  2. -- By: Altamurenza
  3.  
  4. --[[
  5.     THIS IS HAPPENED BECAUSE OF TOO MUCH REQUEST UNTITLED MOD V3.
  6.    
  7.     Remember what i said about Untitled Mod V2 is the final version, but too much
  8.     people request about Untitled Mod V3 so i made this to be final version.
  9.    
  10.     Credits:
  11.     - DaBOSS54320 / Derpy54320 for his Fly Mod and Rapid Fire Guns.
  12. ]]
  13.  
  14. gData = {
  15.     SystemIsLoaded = false,Chapter = ChapterGet(),
  16.    
  17.     Model_Option = 1,Area_Option = 1,Vehicle_Option = 1,
  18.    
  19.     Model = "player",Style = "Player",FPS_Mode = false,H_Regen = GetTimer(),Studies = false,
  20.     StudyArt = false,Vehicle_Siren = false,Unlimited_Ammo = true,Remove_Timer = true,FixBug = true,
  21.     Default_Speed = 100,Rotation = 0,Is_Busy = false,Get_Peds = 999999,Is_Fighting = false,
  22.     T_Limit = 200,CurrentAllies = {},SwitchStyle = GetTimer(),Owned = false,Unlocked = false,
  23.     TimeLimit = GetTimer(),
  24.     RF_Gun = {
  25.         Spud = GetTimer(),Brocket = GetTimer()
  26.     },NoClip = {
  27.         [69] = {Select = 2,[2] = {"NONE",0},[3] = {"UP",0.1},[4] = {"DOWN",-0.1}},
  28.        
  29.         Touch1 = GetTimer(),Touch2 = GetTimer(),FreeCam = false,FCx = nil,FCy = nil,
  30.         FCz = nil,Dist = 120,Active = false,CP = 0,CH = PedGetHeading(gPlayer)
  31.     },
  32.    
  33.     [69] = {Moving = false,LastRun = GetTimer(),LastSprint = GetTimer(),SprintPressed = 0},
  34.    
  35.     James_BETA = {
  36.         Timer = GetTimer(),Combo = 1
  37.     },
  38.     Voice = {
  39.         PlayerHarass = false,Hurts = false,Gifts = false,Stinky = false,Apology = false,
  40.     },
  41.     Func = {
  42.         SwapModel = function(ped,model,style)
  43.             PedSwapModel(ped,model)
  44.             PedSetActionTree(ped,"/Global/"..style,"Act/Anim/"..style..".act")
  45.             if ped == gPlayer then
  46.                 gData.Model = model
  47.                 gData.Style = style
  48.                
  49.                 PedSetAITree(ped,"/Global/PlayerAI","Act/PlayerAI.act")
  50.             end
  51.         end,
  52.         SetStyle = function(ped,style,apply)
  53.             PedSetActionTree(ped,"/Global/"..style,"Act/Anim/"..style..".act")
  54.             if ped == gPlayer then
  55.                 PedSetAITree(ped,"/Global/PlayerAI","Act/PlayerAI.act")
  56.                 if type(apply) == "boolean" and apply then
  57.                     gData.Style = style
  58.                 end
  59.             end
  60.         end,
  61.         Transition = function(a,x,y,z,cax,cay,caz,lox,loy,loz)
  62.             CameraAllowChange(true)
  63.             CameraAllowScriptedChange(true)
  64.             PedSetEffectedByGravity(gPlayer,false)
  65.             PedSetActionNode(gPlayer,"/Global/1_06/HoboFly","Act/Conv/1_06.act")
  66.             CameraFade(500,0)
  67.             Wait(501)
  68.             AreaForceLoadAreaByAreaTransition(true)
  69.             AreaDisableCameraControlForTransition(true)
  70.             AreaTransitionXYZ(a,x,y,z - 4)
  71.             AreaDisableCameraControlForTransition(false)
  72.             AreaForceLoadAreaByAreaTransition(false)
  73.             CameraSetXYZ(cax,cay,caz)
  74.             CameraLookAtXYZ(lox,loy,loz)
  75.             Wait(501)
  76.             CameraFade(500,1)
  77.             CameraAllowChange(false)
  78.             CameraAllowScriptedChange(false)
  79.         end,
  80.         Get_Menu = function(SetVisible,Option,Max)
  81.             CounterMakeHUDVisible(SetVisible)
  82.             PlayerWeaponHudLock(SetVisible)
  83.             ToggleHUDComponentVisibility(4,not SetVisible)
  84.             ToggleHUDComponentVisibility(11,not SetVisible)
  85.             ToggleHUDComponentVisibility(0,not SetVisible)
  86.             if SetVisible then
  87.                 CounterSetCurrent(Option)
  88.                 CounterSetMax(Max)
  89.             end
  90.         end,
  91.         IsMoving = function()
  92.             local s = 0.08 -- sensitivity
  93.             return GetStickValue(16,0) > s or GetStickValue(16,0) < -s or GetStickValue(17,0) > s or GetStickValue(17,0) < -s
  94.         end,
  95.         ForceStop = function(ped)
  96.             if PedIsValid(ped) then
  97.                 PedSetActionNode(ped,"/Global","Act/Globals.act")
  98.             end
  99.         end,
  100.         SetNeutral = function(ped)
  101.             for faction = 0,13 do
  102.                 PedSetPedToTypeAttitude(ped,faction,2)
  103.             end
  104.         end,
  105.         InClass = function()
  106.             if MissionActiveSpecific("C_English_1") or MissionActiveSpecific("C_English_2") or MissionActiveSpecific("C_English_3") or MissionActiveSpecific("C_English_4") or MissionActiveSpecific("C_English_5") or MissionActiveSpecific("C_ART_1") or MissionActiveSpecific("C_ART_2") or MissionActiveSpecific("C_ART_3") or MissionActiveSpecific("C_ART_4") or MissionActiveSpecific("C_ART_5") or MissionActiveSpecific("C_Math_1") or MissionActiveSpecific("C_Math_2") or MissionActiveSpecific("C_Math_3") or MissionActiveSpecific("C_Math_4") or MissionActiveSpecific("C_Math_5") or MissionActiveSpecific("C_Biology_1") or MissionActiveSpecific("C_Biology_2") or MissionActiveSpecific("C_Biology_3") or MissionActiveSpecific("C_Biology_4") or MissionActiveSpecific("C_Biology_5") or MissionActiveSpecific("C_Geography_1") or MissionActiveSpecific("C_Geography_2") or MissionActiveSpecific("C_Geography_3") or MissionActiveSpecific("C_Geography_4") or MissionActiveSpecific("C_Geography_5") then
  107.                 return true
  108.             end
  109.             return false
  110.         end,
  111.         InBio = function()
  112.             if MissionActiveSpecific("C_Biology_1") or MissionActiveSpecific("C_Biology_2") or MissionActiveSpecific("C_Biology_3") or MissionActiveSpecific("C_Biology_4") or MissionActiveSpecific("C_Biology_5") then
  113.                 return true
  114.             end
  115.             return false
  116.         end,
  117.         InGeo = function()
  118.             if MissionActiveSpecific("C_Geography_1") or MissionActiveSpecific("C_Geography_2") or MissionActiveSpecific("C_Geography_3") or MissionActiveSpecific("C_Geography_4") or MissionActiveSpecific("C_Geography_5") then
  119.                 return true
  120.             end
  121.             return false
  122.         end,
  123.         InArt = function()
  124.             if MissionActiveSpecific("C_ART_1") or MissionActiveSpecific("C_ART_2") or MissionActiveSpecific("C_ART_3") or MissionActiveSpecific("C_ART_4") or MissionActiveSpecific("C_ART_5") then
  125.                 return true
  126.             end
  127.             return false
  128.         end,
  129.         ForwardDir2D = function(h,dist)
  130.             return -math.sin(h)*dist,math.cos(h)*dist
  131.         end,
  132.         ForwardDir3D = function(p,h,dist)
  133.             return math.cos(p)*-math.sin(h)*dist,math.cos(p)*math.cos(h)*dist,math.sin(p)*dist
  134.         end,
  135.         GetModelID = function(ped)
  136.             for i = 1,256 do
  137.                 if PedIsModel(ped,i) then
  138.                     return i
  139.                 end
  140.             end
  141.         end,
  142.         FadeIn = function(timer)
  143.             CameraFade(timer,0)
  144.             Wait(timer + 1)
  145.         end,
  146.         FadeOut = function(wait,timer)
  147.             if type(wait) == "number" then
  148.                 Wait(wait)
  149.             end
  150.             CameraFade(timer,1)
  151.         end,
  152.         Clear = function(alone)
  153.             if alone then
  154.                 StopPedProduction(true)
  155.                 AreaClearSpawners()
  156.                 AreaClearDockers()
  157.                 AreaClearAllPeds()
  158.                 AreaClearPatrolPaths()
  159.             else
  160.                 StopPedProduction(false)
  161.             end
  162.         end
  163.     }
  164. }
  165.  
  166. UM_Menu = function()
  167.     while true do  
  168.         local Grabbed,Target,x,y,z = PedGetGrappleTargetPed(gPlayer),PedGetTargetPed(gPlayer),PlayerGetPosXYZ()
  169.        
  170.         function F_WaitUntil(Button,Controller)
  171.             while not IsButtonBeingReleased(Button,Controller) do
  172.                 Wait(0)
  173.             end
  174.         end
  175.        
  176.         F_IsInPosXYZ,CameraPos = function()
  177.             local Location,Dist = {
  178.                 {psx = -490.6,psy = 314.3,psa = 14},{psx = -767.4,psy = 355.3,psa = 60},
  179.                 {psx = -737.3,psy = 38.3,psa = 30},{psx = -692.2,psy = 347.9,psa = 61},
  180.                 {psx = -661.5,psy = 244.2,psa = 57},{psx = -747.1,psy = 356.6,psa = 59},
  181.             },0.5
  182.            
  183.             for num,loc in ipairs(Location) do
  184.                 if AreaGetVisible() == loc.psa then
  185.                     if PedInRectangle(gPlayer,loc.psx + Dist,loc.psy + Dist,loc.psx - Dist,loc.psy - Dist) then
  186.                         return true
  187.                     end
  188.                 end
  189.             end
  190.             return false
  191.         end,function()
  192.             Camera_Location = {
  193.                 {csx = -493.0,csy = 311.0,cxz = 32.3,csa = 14},{csx = -769.7,csy = 351.5,cxz = 6.4,csa = 60},
  194.                 {csx = -738.0,csy = 33.6,cxz = -2.3,csa = 30},{csx = -696.8,csy = 348.2,cxz = 3.2,csa = 61},
  195.                 {csx = -661.4,csy = 249.0,cxz = 15.2,csa = 57},{csx = -747.1,csy = 356.6,cxz = 3.5,csa = 59},
  196.             }
  197.             for num,loc in ipairs(Camera_Location) do
  198.                 if AreaGetVisible() == loc.csa then
  199.                     return loc.csx,loc.csy,loc.cxz + 1
  200.                 end
  201.             end
  202.         end
  203.         -- Fixed Spawn Allies:
  204.         Create_CustomPeds = function(Index)
  205.             local PlayerRecruitPed = function(Pedestrian)
  206.                 local Leader = gPlayer
  207.                 while PedHasAllyFollower(Leader) do
  208.                     Leader = PedGetAllyFollower(Leader)
  209.                     if Leader == Pedestrian then
  210.                         return false
  211.                     end
  212.                 end
  213.                 PedRecruitAlly(Leader,Pedestrian)
  214.                 PedGuardPed(Pedestrian,Leader)
  215.             end
  216.             local GetRandomCoord = function(a)
  217.                 if a == 14 then return math.random(-497*100,-494*100)/100,math.random(308*100,312*100)/100,31.3 end
  218.                 if a == 59 then return math.random(-750*100,-755*100)/100,math.random(348*100,351*100)/100,3.5 end
  219.                 if a == 60 then return math.random(-772*100,-779*100)/100,math.random(351*100,355*100)/100,6.4 end
  220.                 if a == 30 then return math.random(-724*100,-732*100)/100,math.random(33*100,41*100)/100,-2.3 end
  221.                 if a == 61 then return math.random(-699*100,-696*100)/100,math.random(344*100,352*100)/100,3.2 end
  222.                 if a == 57 then return math.random(-655*100,-662*100)/100,math.random(248*100,245*100)/100,15.2 end
  223.             end
  224.             local xdipper = PedCreateXYZ(Index,GetRandomCoord(AreaGetVisible()))
  225.             PedMakeAmbient(xdipper)
  226.            
  227.             PlayerRecruitPed(xdipper)
  228.            
  229.             PedSetActionNode(xdipper,"/Global/1_03/animations/DavisWait","Act/Conv/1_03.act")
  230.             --table.insert(gData.CurrentAllies,xdipper)
  231.         end
  232.        
  233.         -- Model Selector:
  234.         if F_IsInPosXYZ() and PedHasWeapon(gPlayer,-1) and not PlayerIsInAnyVehicle() and not (PedIsValid(Target) or PedIsValid(Grabbed)) then
  235.             if IsButtonBeingPressed(6,0) then
  236.                 F_WaitUntil(6,0)
  237.                
  238.                 SoundPlay2D("Erand")
  239.                 gData.Func.Clear(true)
  240.                 gData.Func.FadeIn(500)
  241.                
  242.                 IsPlayer,gData.Is_Fighting,gData.Is_Busy = false,false,true
  243.                 if gData.Style == "James_BETA" then
  244.                     gData.Func.SetStyle(gPlayer,"Player")
  245.                 else
  246.                     gData.Func.SetStyle(gPlayer,gData.Style) end
  247.                
  248.                 gData.Func.ForceStop(gPlayer)
  249.                 gData.Func.Get_Menu(true,gData.Model_Option,table.getn(Models))
  250.                
  251.                 gData.Func.FadeOut(100,500)
  252.                 repeat
  253.                     if IsButtonBeingPressed(11,0) then
  254.                         gData.Model_Option = gData.Model_Option + 1
  255.                         if gData.Model_Option > table.getn(Models) then gData.Model_Option = 1 end
  256.                        
  257.                         gData.Func.SwapModel(gPlayer,Models[gData.Model_Option].model,Models[gData.Model_Option].style)
  258.                         SoundPlay2D("ButtonUp")
  259.                     elseif IsButtonBeingPressed(8,0) then
  260.                         gData.Model_Option = gData.Model_Option - 1
  261.                         if gData.Model_Option < 1 then gData.Model_Option = table.getn(Models) end
  262.                        
  263.                         gData.Func.SwapModel(gPlayer,Models[gData.Model_Option].model,Models[gData.Model_Option].style)
  264.                         SoundPlay2D("ButtonUp")
  265.                     end
  266.                    
  267.                     -- Unlimited Spawn Allies (Fixed):
  268.                     if IsButtonBeingPressed(2,0) then
  269.                         --if gData.Model_Option ~= 1 and table.getn(gData.CurrentAllies) <= 10 then
  270.                         if gData.Model_Option ~= 1 then
  271.                             Create_CustomPeds(gData.Model_Option)
  272.                         end
  273.                     end
  274.                    
  275.                     if gData.Style ~= "Player" then
  276.                         IsPlayer = false
  277.                         PedMoveToXYZ(gPlayer,CameraPos())
  278.                     else
  279.                         if not IsPlayer then
  280.                             PlayerStopAllActionControllers()
  281.                             IsPlayer = true
  282.                         end
  283.                     end
  284.                    
  285.                     CounterSetCurrent(gData.Model_Option)
  286.                     PlayerSetPosSimple(x,y,z)
  287.                     PedFaceXYZ(gPlayer,CameraPos())
  288.                     PedSetWeapon(gPlayer,-1)
  289.                    
  290.                     CameraSetXYZ(CameraPos())
  291.                     CameraLookAtXYZ(x,y,z + 1.5)
  292.                    
  293.                     Wait(0)
  294.                 until IsButtonBeingPressed(6,0)
  295.                 SoundPlay2D("Erand")
  296.                
  297.                 gData.Func.ForceStop(gPlayer)
  298.                 F_WaitUntil(6,0)
  299.                
  300.                 gData.Func.FadeIn(500)
  301.                
  302.                 for i,ped in {PedFindInAreaXYZ(0,0,0,99999)} do
  303.                    
  304.                     if PedIsValid(ped) and ped ~= gPlayer then
  305.                         gData.Func.ForceStop(ped)
  306.                     end
  307.                 end
  308.                
  309.                 gData.Func.SetStyle(gPlayer,"Player",false)
  310.                 CameraReturnToPlayer()
  311.                 gData.Func.Get_Menu(false)
  312.                
  313.                 gData.Func.Clear(false)
  314.                 gData.Func.FadeOut(100,500)
  315.                
  316.                 gData.Is_Busy = false
  317.             end
  318.         end
  319.        
  320.         -- Area Selector:
  321.         if PedInRectangle(gPlayer,-498.3 + 1,309.0 + 1,-498.3 - 1,309.0 - 1) then
  322.             if IsButtonBeingPressed(6,0) and PedHasWeapon(gPlayer,-1) and not PlayerIsInAnyVehicle() and not (PedIsValid(Target) or PedIsValid(Grabbed)) then
  323.                 F_WaitUntil(6,0)
  324.                
  325.                 SoundPlay2D("Erand")
  326.                 PauseGameClock()
  327.                
  328.                 gData.Is_Busy = true
  329.                 gData.Func.ForceStop(gPlayer)
  330.                 gData.Func.Get_Menu(true,gData.Area_Option,table.getn(Area))
  331.                
  332.                 ForceTransitionNow = function()
  333.                     gData.Func.Transition(
  334.                         Area[gData.Area_Option][1],
  335.                         Area[gData.Area_Option][2],
  336.                         Area[gData.Area_Option][3],
  337.                         Area[gData.Area_Option][4],
  338.                         Area[gData.Area_Option][5],
  339.                         Area[gData.Area_Option][6],
  340.                         Area[gData.Area_Option][7],
  341.                         Area[gData.Area_Option][8],
  342.                         Area[gData.Area_Option][9],
  343.                         Area[gData.Area_Option][10]
  344.                     )
  345.                 end
  346.                 ForceTransitionNow()
  347.                
  348.                 repeat
  349.                     if IsButtonBeingPressed(11,0) then
  350.                         gData.Area_Option = gData.Area_Option + 1
  351.                         if gData.Area_Option > table.getn(Area) then gData.Area_Option = 1 end
  352.                        
  353.                         ForceTransitionNow()
  354.                        
  355.                         SoundPlay2D("ButtonUp")
  356.                     elseif IsButtonBeingPressed(8,0) then
  357.                         gData.Area_Option = gData.Area_Option - 1
  358.                         if gData.Area_Option < 1 then gData.Area_Option = table.getn(Area) end
  359.                        
  360.                         ForceTransitionNow()
  361.                        
  362.                         SoundPlay2D("ButtonUp")
  363.                     end
  364.                    
  365.                     if IsButtonBeingPressed(2,0) then
  366.                         if gData.Chapter ~= 2 then
  367.                            
  368.                             if ChapterGet() ~= 2 then
  369.                                 ChapterSet(2)
  370.                             else
  371.                                 ChapterSet(gData.Chapter) end
  372.                                
  373.                         else
  374.                            
  375.                             if ChapterGet() ~= 2 then
  376.                                 ChapterSet(2)
  377.                             else
  378.                                 local Not_Winter = {1,6,4}
  379.                                 ChapterSet(Not_Winter[math.random(1,3)])
  380.                             end
  381.                            
  382.                         end
  383.                     end
  384.                    
  385.                     CounterSetCurrent(gData.Area_Option)
  386.                    
  387.                     Wait(0)
  388.                 until IsButtonBeingPressed(6,0)
  389.                 CameraAllowChange(true)
  390.                 CameraAllowScriptedChange(true)
  391.                
  392.                 F_WaitUntil(6,0)
  393.                 UnpauseGameClock()
  394.                
  395.                 PlayerSetPosSimple(
  396.                     Area[gData.Area_Option][2],
  397.                     Area[gData.Area_Option][3],
  398.                     Area[gData.Area_Option][4] + 1
  399.                 )
  400.                
  401.                 gData.Func.Get_Menu(false)
  402.                 gData.Func.ForceStop(gPlayer)
  403.                 gData.Is_Busy = false
  404.                
  405.                 PedSetEffectedByGravity(gPlayer,true)
  406.                 CameraReturnToPlayer()
  407.                 SoundPlay2D("Erand")
  408.             end
  409.         end
  410.        
  411.         -- Vehicle Selector:
  412.         if PedInRectangle(gPlayer,161.9 + 1,-7.9 + 1,161.9 - 1,-7.9 - 1) or PedInRectangle(gPlayer,526.8 + 1,-411.3 + 1,526.8 - 1,-411.3 - 1) then
  413.             if IsButtonBeingPressed(6,0) and PedHasWeapon(gPlayer,-1) and not PlayerIsInAnyVehicle() and not (PedIsValid(Target) or PedIsValid(Grabbed)) then
  414.                 F_WaitUntil(6,0)
  415.                 SoundPlay2D("Erand")
  416.                
  417.                 gData.Func.FadeIn(500)
  418.                
  419.                 gData.Is_Busy,x,y,z = true,PlayerGetPosXYZ()
  420.                 gData.Func.ForceStop(gPlayer)
  421.                 gData.Func.Get_Menu(true,gData.Vehicle_Option,table.getn(Vehicles))
  422.                 gData.Func.Clear(true)
  423.                
  424.                 local VCx,VCy,VCz = 168.3,-10.6,5.8
  425.                 if PedInRectangle(gPlayer,526.8 + 1,-411.3 + 1,526.8 - 1,-411.3 - 1) then
  426.                     VCx,VCy,VCz = 521.2,-408.6,2.1
  427.                 end
  428.                
  429.                 if VehicleIsValid(PlayerVehicle) then VehicleDelete(PlayerVehicle) end
  430.                 PlayerVehicle = VehicleCreateXYZ(Vehicles[gData.Vehicle_Option],VCx,VCy,VCz)
  431.                
  432.                 gData.Func.FadeOut(100,500)
  433.                
  434.                 repeat
  435.                     if IsButtonBeingPressed(11,0) then
  436.                         gData.Vehicle_Option = gData.Vehicle_Option + 1
  437.                         if gData.Vehicle_Option > table.getn(Vehicles) then gData.Vehicle_Option = 1 end
  438.                        
  439.                         if VehicleIsValid(PlayerVehicle) then VehicleDelete(PlayerVehicle) end
  440.                         PlayerVehicle = VehicleCreateXYZ(Vehicles[gData.Vehicle_Option],VCx,VCy,VCz)
  441.                        
  442.                         SoundPlay2D("ButtonUp")
  443.                     elseif IsButtonBeingPressed(8,0) then
  444.                         gData.Vehicle_Option = gData.Vehicle_Option - 1
  445.                         if gData.Vehicle_Option < 1 then gData.Vehicle_Option = table.getn(Vehicles) end
  446.                        
  447.                         gData.Func.ForceStop(gPlayer)
  448.                         if VehicleIsValid(PlayerVehicle) then VehicleDelete(PlayerVehicle) end
  449.                         PlayerVehicle = VehicleCreateXYZ(Vehicles[gData.Vehicle_Option],VCx,VCy,VCz)
  450.                        
  451.                         SoundPlay2D("ButtonUp")
  452.                     end
  453.                    
  454.                     -- He didn't do this small thing:
  455.                     CounterSetCurrent(gData.Vehicle_Option)
  456.                    
  457.                     PlayerSetPosSimple(x,y,z)
  458.                     CameraSetXYZ(x,y,z + 4,VCx,VCy,VCz)
  459.                     Wait(0)
  460.                 until IsButtonBeingPressed(6,0)
  461.                 F_WaitUntil(6,0)
  462.                 SoundPlay2D("Erand")
  463.                
  464.                 gData.Func.FadeIn(500)
  465.                 CameraReturnToPlayer()
  466.                 gData.Func.ForceStop(6,0)
  467.                
  468.                 gData.Is_Busy = false
  469.                 gData.Func.Get_Menu(false)
  470.                 gData.Func.Clear(false)
  471.                
  472.                 gData.Func.FadeOut(100,500)
  473.             end
  474.         end
  475.         Wait(0)
  476.     end
  477. end
  478. UM_System = function()
  479.     while true do
  480.         local Grabbed,Target = PedGetGrappleTargetPed(gPlayer),PedGetTargetPed(gPlayer)
  481.         -- Pedestrian config:
  482.         for i,ped in {PedFindInAreaXYZ(0,0,0,gData.Get_Peds)} do
  483.             if PedIsValid(ped) and ped ~= gPlayer then
  484.                 local x,y,z = PlayerGetPosXYZ()
  485.                 local x1,y1,z1 = PedGetPosXYZ(ped)
  486.                
  487.                 -- AEZAKMI:
  488.                 PedSetFlag(gPlayer,117,false)
  489.                
  490.                 local Hunter_Faction = {0,7,8,9,10}
  491.                 for HF_ID,HF in ipairs(Hunter_Faction) do
  492.                     if PedGetFaction(ped) == HF then
  493.                         local Flags = {{21,true},{27,true}}
  494.                        
  495.                         for FLAG_ID,FLAG in ipairs(Flags) do
  496.                             if PedGetFlag(ped,FLAG[1]) ~= FLAG[2] then
  497.                                 PedSetFlag(ped,unpack(FLAG))
  498.                             end
  499.                         end
  500.                     end
  501.                 end
  502.                
  503.                 -- Every woman as slut:
  504.                 if PedIsFemale(ped) and not PedIsModel(ped,39) then
  505.                     PedSetEmotionTowardsPed(ped,gPlayer,4)
  506.                     PedSetFlag(ped,84,true)
  507.                 end
  508.                
  509.                 -- Busting reversal:
  510.                 if PedIsPlaying(ped,"/Global/Actions/Grapples/Front/Grapples/GrappleMoves/Adult_Takedown",true) then
  511.                     if PedGetTargetPed(ped) == gPlayer and math.abs(x - x1) + math.abs(y - y1) + math.abs(z - z1) < 2 then
  512.                         PedSetActionNode(gPlayer,"/Global/Actions/Grapples/GrappleReversals/StandingReversals/GrappleBreak/Break_GIVE","Act/Globals.act")
  513.                     end
  514.                 end
  515.                
  516.                 -- Stealing car from the owner:
  517.                 if not PedIsInAnyVehicle(ped) and VehicleIsValid(PedGetLastVehicle(ped)) and not PlayerIsInAnyVehicle() then
  518.                    
  519.                     if math.abs(x - x1) + math.abs(y - y1) + math.abs(z - z1) < 4 then
  520.                         local LastVehicle = PedGetLastVehicle(ped)
  521.                        
  522.                         if IsButtonBeingPressed(15,0) then
  523.                             if VehicleIsModel(LastVehicle,284) or VehicleIsModel(LastVehicle,286) or VehicleIsModel(LastVehicle,288) or VehicleIsModel(LastVehicle,289) or VehicleIsModel(LastVehicle,290) or VehicleIsModel(LastVehicle,291) or VehicleIsModel(LastVehicle,292) or VehicleIsModel(LastVehicle,293) or VehicleIsModel(LastVehicle,294) or VehicleIsModel(LastVehicle,295) or VehicleIsModel(LastVehicle,296) or VehicleIsModel(LastVehicle,297) then
  524.                                 PedWarpIntoCar(gPlayer,LastVehicle)
  525.                                 SoundPlayAmbientSpeechEvent(ped,"SCARED_CRY")
  526.                                 PedFlee(ped,gPlayer)
  527.                             elseif VehicleIsModel(LastVehicle,275) then
  528.                                 PedPutOnBike(gPlayer,LastVehicle)
  529.                                 SoundPlayAmbientSpeechEvent(ped,"SCARED")
  530.                                 PedFlee(ped,gPlayer)
  531.                             end
  532.                         end
  533.                     end
  534.                 end
  535.                
  536.                 -- NPC Girl logic:
  537.                 if PedIsFemale(gPlayer) then
  538.                     if PedIsOnScreen(ped) then
  539.                        
  540.                         if PedIsDoingTask(ped,"/Global/AI/GeneralObjectives/FleeObjective",true) then
  541.                             if PedIsFemale(ped) and AreaGetVisible() == 35 then
  542.                                 PedSetTaskNode(ped,"/Global/AI/ScriptedAI","Act/AI/AI.act")
  543.                                 PedSetActionNode(ped,"/Global/2_S04/Anim/RochambeauNIS/TrentGreet","Act/Conv/2_S04.act")
  544.                                 SoundPlayAmbientSpeechEvent(ped,"GREET")
  545.                             end
  546.                         end
  547.                         if PedIsDoingTask(ped,"/Global/AI/Reactions/Triggered/GirlsBathroom/GirlNotice","Act/AI/AI_Reactions.act",true) then
  548.                             PedSetTaskNode(ped,"/Global/AI","Act/AI/AI.act")
  549.                         end
  550.                        
  551.                         if PedIsHit(gPlayer,2,50) then
  552.                             if PedGetWhoHitMeLast(gPlayer) == ped then
  553.                                 if PedIsFemale(ped) then
  554.                                     PedSetPunishmentPoints(ped,200)
  555.                                 else
  556.                                     PedSetPunishmentPoints(ped,100)
  557.                                 end
  558.                             end
  559.                         end
  560.                     end
  561.                     if math.abs(x - x1) + math.abs(y - y1) + math.abs(z - z1) < 4 then
  562.                         if PedIsPlaying(gPlayer,"/Global/Actions/Grapples/Front/Grapples/GrappleMoves/GirlFight",true) then
  563.                             if PedIsPlaying(ped,"/Global/Actions/Grapples/Front/Grapples/GrappleMoves/GirlFight",true) then
  564.                                 PedSetActionNode(gPlayer,"/Global/Actions/Grapples/GrappleReversals/StandingReversals/GrappleBreak/Break_GIVE","Act/Globals.act")
  565.                             end
  566.                         end
  567.                     end
  568.                 end
  569.                
  570.             end
  571.         end
  572.        
  573.         -- Movements:
  574.         function IsFree()
  575.             return PedHasWeapon(gPlayer,-1) and not PedGetFlag(gPlayer,2,true) and not PlayerIsInAnyVehicle() and
  576.                 PedIsPlaying(gPlayer,"/Global/Player/Default_KEY",true) or
  577.                 PedIsPlaying(gPlayer,"/Global/"..gData.Style.."/Default_KEY",true) or
  578.                 PedIsPlaying(gPlayer,"/Global/"..gData.Style.."/Default_KEY/ExecuteNodes/Free/WalkBasic",true) or
  579.                 PedIsPlaying(gPlayer,"/Global/"..gData.Style.."/Default_KEY/ExecuteNodes/Free/RunBasic",true) or
  580.                 PedIsPlaying(gPlayer,"/Global/"..gData.Style.."/Default_KEY/ExecuteNodes/Free/SprintBasic",true)
  581.         end
  582.        
  583.         if gData.Style ~= "Player" and not gData.Is_Fighting then
  584.             local qData = gData[69]
  585.             -- Run Detection:
  586.             if IsButtonBeingPressed(7,0) then
  587.                 qData.SprintPressed = qData.SprintPressed + 1
  588.                 qData.LastSprint = GetTimer()
  589.             elseif GetTimer() >= qData.LastSprint + 300 then
  590.                 qData.SprintPressed = 0
  591.             end
  592.             -- Sprint Detection:
  593.             if IsButtonBeingReleased(7,0) then
  594.                 qData.LastRun = GetTimer()
  595.             end
  596.             -- Doing Movement:
  597.             if IsFree() then
  598.                 Sensitivity = 0.1
  599.                 -- Button Movement Detection [W][A][S][D]:
  600.                 if Sensitivity <= math.abs(GetStickValue(16,0)) + math.abs(GetStickValue(17,0)) and not IsButtonPressed(10,0) then
  601.                     -- Sign:
  602.                     qData.Moving = true
  603.                     -- Moving:
  604.                     if qData.SprintPressed > 1 then
  605.                         PedSetActionNode(gPlayer,"/Global/"..gData.Style.."/Default_KEY/ExecuteNodes/Free/SprintBasic","Act/Anim/"..gData.Style..".act")
  606.                     elseif IsButtonPressed(7,0) or GetTimer() < qData.LastRun + 200 then
  607.                         PedSetActionNode(gPlayer,"/Global/"..gData.Style.."/Default_KEY/ExecuteNodes/Free/RunBasic","Act/Anim/"..gData.Style..".act")
  608.                     else
  609.                         PedSetActionNode(gPlayer,"/Global/"..gData.Style.."/Default_KEY/ExecuteNodes/Free/WalkBasic","Act/Anim/"..gData.Style..".act")
  610.                     end
  611.                     -- Jump:
  612.                     if IsButtonBeingPressed(8,0) then
  613.                         PedSetActionNode(gPlayer,"/Global/Player/JumpActions/Jump", "Act/Anim/Player.act")
  614.                     end
  615.                     -- Grapple while running:
  616.                     if IsButtonBeingPressed(9,0) and PedIsValid(PedGetTargetPed(gPlayer)) then
  617.                         PedSetActionNode(gPlayer,"/Global/Actions/Grapples/RunningTakedown","Act/Globals.act")
  618.                     end
  619.                     -- Running Attacks:
  620.                     if IsButtonBeingPressed(6,0) and PedIsPlaying(gPlayer,"/Global/"..gData.Style.."/Default_KEY/ExecuteNodes/Free/RunBasic",true) then
  621.                         PedSetActionNode(gPlayer,"/Global/Actions/Offense/RunningAttacks/RunningAttacksDirect","Act/Globals.act")
  622.                     elseif IsButtonBeingPressed(6,0) and PedIsPlaying(gPlayer,"/Global/"..gData.Style.."/Default_KEY/ExecuteNodes/Free/SprintBasic",true) then
  623.                         PedSetActionNode(gPlayer,"/Global/Player/Attacks/Strikes/RunningAttacks/HeavyAttacks/RunShoulder","Act/Player.act")
  624.                     end
  625.                    
  626.                     local Target = PedGetTargetPed(gPlayer)
  627.                     if PedIsValid(Target) and IsButtonPressed(10,0) then
  628.                         if PedIsPlaying(gPlayer,"/Global/"..gData.Style.."/Default_KEY/ExecuteNodes/Free/WalkBasic",true) then
  629.                             local x,y,z = PedGetPosXYZ(Target)
  630.                             PedFaceXYZ(gPlayer,x,y,z)
  631.                         end
  632.                     end
  633.                 elseif qData.Moving then
  634.                     -- Stoping Player:
  635.                     qData.Moving = false
  636.                     PedSetActionNode(gPlayer,"/Global/"..gData.Style,"Act/Anim/"..gData.Style..".act")
  637.                 end
  638.             end
  639.         end
  640.        
  641.         -- Health Regen:
  642.         if PlayerGetHealth() <= PedGetMaxHealth(gPlayer) then
  643.             if PedMePlaying(gPlayer,"DEFAULT_KEY") and not (PedIsValid(Target) or PedIsValid(Grabbed)) then
  644.                 if gData.H_Regen + 1000 <= GetTimer() then
  645.                     PlayerSetHealth(PlayerGetHealth() + 5)
  646.                     if PlayerGetHealth() > PedGetMaxHealth(gPlayer) then
  647.                         PlayerSetHealth(PedGetMaxHealth(gPlayer))
  648.                     end
  649.                     gData.H_Regen = GetTimer()
  650.                 end
  651.             end
  652.         end
  653.        
  654.         -- No Tired:
  655.         PedSetInfiniteSprint(gPlayer,true)
  656.         if ClockGet() >= 23 or ClockGet() < 7 then
  657.             PauseGameClock()
  658.         elseif ClockGet() <= 23 or ClockGet() > 7 then
  659.             if ClockIsPaused() and not MissionActive() then
  660.                 UnpauseGameClock()
  661.             end
  662.         end
  663.        
  664.         -- Immortal:
  665.         PedSetFlag(gPlayer,58,true)
  666.         if PlayerGetHealth() < 1 then
  667.             PedSetActionNode(gPlayer,"/Global/1_07/KO_COLLAPSE","Act/Conv/1_07.act")
  668.             PlayerSetHealth(50)
  669.         end
  670.        
  671.         -- Trouble Metter limit:
  672.         if PlayerGetPunishmentPoints() > gData.T_Limit then
  673.             PlayerSetPunishmentPoints(gData.T_Limit)
  674.         end
  675.        
  676.         --[[ Collectibles Hack:
  677.         CollectibleOnMapEnable(0,true)
  678.         CollectibleOnMapEnable(1,true)
  679.         CollectibleOnMapEnable(2,true)
  680.         CollectibleOnMapEnable(3,true)
  681.         CollectibleOnMapEnable(4,true)
  682.         CollectibleOnMapEnable(5,true)
  683.         ]]
  684.        
  685.         -- Unlimited Tickets:
  686.         ItemSetCurrentNum(495,99999)
  687.        
  688.         -- Unlimited Money:
  689.         PlayerSetMoney(9999999)
  690.        
  691.         -- Unlimited Ammo (Fixed):
  692.         if not PlayerIsInAnyVehicle() then
  693.             local Weapons_Pack = {
  694.                 "301",
  695.                 "303",
  696.                 "305",
  697.                 "306",
  698.                 "307",
  699.                 "309",
  700.                 "312",
  701.                 "320",
  702.                 "321",
  703.                 "325",
  704.                 "328",
  705.                 "426",
  706.                 "437",
  707.                 "420",
  708.                 "394",
  709.                 "349",
  710.                 "396",
  711.             }
  712.             for WEAPON_NUMBER,WEAPONS in ipairs(Weapons_Pack) do
  713.                 if not PlayerHasItem(WEAPONS) then
  714.                     GiveWeaponToPlayer(WEAPONS,100)
  715.                 end
  716.             end
  717.         end
  718.        
  719.         PedSetFlag(gPlayer,24,true)
  720.         if PedGetWeapon(gPlayer) ~= -1 and IsButtonBeingReleased(12,0) then
  721.             GiveAmmoToPlayer(PedGetWeapon(gPlayer),50,false)
  722.         end
  723.        
  724.         -- Unlock all clothes:
  725.         if not gData.Owned then
  726.             for ClothID,Clothes in ipairs(All_Clothes) do
  727.                 if not ClothingPlayerOwns(Clothes.model,Clothes.style) then
  728.                     ClothingGivePlayer(Clothes.model,Clothes.style)
  729.                 end
  730.             end
  731.             for OutfitID,Outfit in ipairs(All_Outfit) do
  732.                 ClothingGivePlayerOutfit(Outfit[1])
  733.             end
  734.            
  735.             gData.Owned = true
  736.         end
  737.        
  738.         -- Unlock all collectibles (Fixed):
  739.         if IsMissionCompleated("1_B") then
  740.             local CollectiblesSetCompleted = function()
  741.                 for CollectiblesID = 0,5 do
  742.                     if CollectiblesGetNumCollected(CollectiblesID) < CollectiblesGetNumCollectable(CollectiblesID) then
  743.                         CollectiblesSetAllAsCollected(CollectiblesID)
  744.                     end
  745.                 end
  746.             end
  747.            
  748.             if GetCutsceneRunning() == 0 then
  749.                 CollectiblesSetCompleted()
  750.             else
  751.                 if GetCutsceneTime() >= 5500 then
  752.                     CollectiblesSetCompleted()
  753.                 end
  754.             end
  755.         end
  756.        
  757.         -- Instant Lawn Mowing (Fixed):
  758.         local L_Mowing = {
  759.             "LawnMowing1a","LawnMowing1b","LawnMowing1c","LawnMowing2a","LawnMowing2b","LawnMowing2c",
  760.             "LawnMowing3a","LawnMowing3b","LawnMowing3c","JobLawnMowing1a","JobLawnMowing1b","JobLawnMowing1c",
  761.             "JobLawnMowing2a","JobLawnMowing2b","JobLawnMowing2c"
  762.         }
  763.         for Num,LM_Mission in ipairs(L_Mowing) do
  764.             if MissionActiveSpecific(LM_Mission) then
  765.                 LawnMowingSetMinScore(5)
  766.             end
  767.         end
  768.        
  769.         -- Rapid Fire Guns:
  770.         local AllowedToRFG = function()
  771.             return not PlayerIsInAnyVehicle() and not PedGetFlag(gPlayer,2,true) and not (PedMePlaying(gPlayer,"TreeCheck",false) or PedMePlaying(gPlayer,"Dead",false) or PedMePlaying(gPlayer,"Climb_ON_BOT",false) or PedMePlaying(gPlayer,"HoistUp_Spawns",false))
  772.         end
  773.         if AllowedToRFG() then
  774.             if IsButtonPressed(12,0) and (PedHasWeapon(gPlayer,305) or PedHasWeapon(gPlayer,396)) then
  775.                 if gData.RF_Gun.Spud + 300 <= GetTimer() then
  776.                     PedSetActionNode(gPlayer,"/Global/Gun","Act/Weapons/Gun.act")
  777.                     gData.RF_Gun.Spud = GetTimer()
  778.                 end
  779.             end
  780.             if PedHasWeapon(gPlayer,307) and IsButtonBeingReleased(12,0) then
  781.                 if gData.RF_Gun.Brocket + 300 <= GetTimer() then
  782.                     PedSetActionNode(gPlayer,"/Global/Gun","Act/Weapons/Gun.act")
  783.                     gData.RF_Gun.Brocket = GetTimer()
  784.                 end
  785.             end
  786.         end
  787.        
  788.         -- Cop Siren:
  789.         if PlayerIsInAnyVehicle() then
  790.             if VehicleIsModel(VehicleFromDriver(gPlayer),275) or VehicleIsModel(VehicleFromDriver(gPlayer),295) then
  791.                 if IsButtonBeingPressed(8,0) then
  792.                     gData.Vehicle_Siren = not gData.Vehicle_Siren
  793.                     VehicleEnableSiren(VehicleFromDriver(gPlayer),gData.Vehicle_Siren)
  794.                 end
  795.             end
  796.         end
  797.        
  798.         -- Riding Car:
  799.         if VehicleIsValid(PlayerVehicle) then
  800.             local PVx,PVy,PVz = VehicleGetPosXYZ(PlayerVehicle)
  801.             if PedInRectangle(gPlayer,PVx + 4,PVy + 4,PVx - 4,PVy - 4) then
  802.                 if IsButtonBeingReleased(15,0) and not PlayerIsInAnyVehicle() and gData.Vehicle_Option > 10 then
  803.                     PedWarpIntoCar(gPlayer,PlayerVehicle)
  804.                     Wait(200)
  805.                 elseif IsButtonBeingReleased(15,0) and not PlayerIsInAnyVehicle() and gData.Vehicle_Option == 1 then
  806.                     PedPutOnBike(gPlayer,PlayerVehicle)
  807.                     Wait(200)
  808.                 end
  809.             end
  810.         end
  811.         if VehicleIsValid(PedGetLastVehicle(gPlayer)) then
  812.             local LastVehicle = PedGetLastVehicle(gPlayer)
  813.             local LVx,LVy,LVz = VehicleGetPosXYZ(PedGetLastVehicle(gPlayer))
  814.             if PedGetLastVehicle(gPlayer) ~= PlayerVehicle and PedInRectangle(gPlayer,LVx + 4,LVy + 4,LVx - 4,LVy - 4) then
  815.                 if IsButtonBeingReleased(15,0) and not PlayerIsInAnyVehicle() then
  816.                     if VehicleIsModel(LastVehicle,284) or VehicleIsModel(LastVehicle,286) or VehicleIsModel(LastVehicle,288) or VehicleIsModel(LastVehicle,289) or VehicleIsModel(LastVehicle,290) or VehicleIsModel(LastVehicle,291) or VehicleIsModel(LastVehicle,292) or VehicleIsModel(LastVehicle,293) or VehicleIsModel(LastVehicle,294) or VehicleIsModel(LastVehicle,295) or VehicleIsModel(LastVehicle,296) or VehicleIsModel(LastVehicle,297) then
  817.                         PedWarpIntoCar(gPlayer,LastVehicle)
  818.                         Wait(200)
  819.                     elseif VehicleIsModel(LastVehicle,275) then
  820.                         PedPutOnBike(gPlayer,LastVehicle)
  821.                     end
  822.                 end
  823.             end
  824.         end
  825.        
  826.         -- No Time Limit (Fixed):
  827.         local PlayerStudies,PlayerFinsihedTheStudy = function()
  828.             if gData.Func.InClass() and not gData.Studies and (AreaGetVisible() == 17 or AreaGetVisible() == 6 or AreaGetVisible() == 15) then
  829.                 return true
  830.             end
  831.             return false
  832.         end,function()
  833.             if not gData.Func.InClass() and gData.Studies and AreaGetVisible() ~= 17 and AreaGetVisible() ~= 6 and AreaGetVisible() ~= 15 then
  834.                 return true
  835.             end
  836.             return false
  837.         end
  838.        
  839.         if PlayerStudies() then
  840.             Wait(2000)
  841.             gData.Studies,gData.StudyArt = true,false
  842.         elseif PlayerFinsihedTheStudy() then
  843.             gData.Studies,gData.StudyArt = false,true
  844.         end
  845.         if gData.Studies then
  846.             if not gData.Func.InArt() and (AreaGetVisible() == 17 or AreaGetVisible() == 15 or AreaGetVisible() == 6) then
  847.                 ClassMathSetTimer(999999999)
  848.                 ClassEnglishSetTimer(999999999)
  849.                 ClassGeographySetTimer(999999999)
  850.                 ClassBiologySetTimer(999999999)
  851.             elseif gData.Func.InArt() and AreaGetVisible() == 17 then
  852.                 if not gData.StudyArt then
  853.                     MGCA_SetPlayerSpeed(1)
  854.                     MGCA_SetEnemySpeed(0,0)
  855.                     MGCA_SetEnemySpeed(1,0)
  856.                     MGCA_SetEnemySpeed(2,0)
  857.                     MGCA_SetEnemySpeed(3,0)
  858.                     MGCA_SetEnemySpeed(4,0)
  859.                     if MissionActiveSpecific("C_ART_5") then
  860.                         MGCA_SetExploderTimeOut(0)
  861.                         MGCA_SetExploderDebrisCount(1)
  862.                         MGCA_SetExploderDebrisSpeed(0)
  863.                         MGCA_SetSetPowerUpClearRadius(1)
  864.                     end
  865.                    
  866.                     gData.StudyArt = true
  867.                 end
  868.             end
  869.         end
  870.         if MissionActive() then
  871.             if not gData.Func.InClass() then
  872.                 if MissionTimerGetTimeRemaining() > 0 then
  873.                     MissionTimerStop()
  874.                 end
  875.             end
  876.         end
  877.        
  878.         --[[ Completing Lesson in 1 minutes:
  879.         if gData.Func.InGeo() then
  880.             if gData.TimeLimit + 60000 <= GetTimer() then
  881.                 ClassGeographySuccess(true)
  882.                 gData.TimeLimit = GetTimer()
  883.             end
  884.         elseif gData.Func.InArt() then
  885.             if gData.TimeLimit + 60000 <= GetTimer() then
  886.                 ArtSuccess(true)
  887.                 gData.TimeLimit = GetTimer()
  888.             end
  889.         elseif gData.Func.InBio() then
  890.             if gData.TimeLimit + 60000 <= GetTimer() then
  891.                 ClassBiologySuccess(true)
  892.                 gData.TimeLimit = GetTimer()
  893.             end
  894.         else
  895.             gData.TimeLimit = GetTimer()
  896.         end]]
  897.        
  898.         -- No Clip:
  899.         local AllowedToNC = function()
  900.             return not PedIsValid(Target) and not PlayerIsInAnyVehicle() and not gData.Is_Busy and not gData.Is_Fighting and not gData.Func.IsMoving()
  901.         end
  902.         if IsButtonBeingPressed(8,0) and AllowedToNC() then
  903.            
  904.             if gData.NoClip.Touch1 and GetTimer() < gData.NoClip.Touch1 + 500 then
  905.                 if gData.NoClip.Touch2 and GetTimer() < gData.NoClip.Touch2 + 500 then
  906.                    
  907.                     if gData.NoClip.Active then
  908.                         CameraReturnToPlayer()
  909.                         gData.Func.ForceStop(gPlayer)
  910.                         PedSetEffectedByGravity(gPlayer,true)
  911.                        
  912.                         gData.NoClip.Active = false
  913.                     else
  914.                         PedSetWeaponNow(gPlayer,-1,0)
  915.                        
  916.                         gData.NoClip.CP,gData.NoClip.CH = 0,PedGetHeading(gPlayer)
  917.                        
  918.                         gData.NoClip[69].Select,gData.NoClip.FreeCam,gData.NoClip.Active = 2,false,true
  919.                     end
  920.                 else
  921.                     gData.NoClip.Touch2 = GetTimer()
  922.                 end
  923.             else
  924.                 gData.NoClip.Touch1 = GetTimer()
  925.             end
  926.         end
  927.        
  928.         if gData.NoClip.Active then
  929.             if IsButtonBeingPressed(11,0) then
  930.                 local Option = gData.NoClip[69]
  931.                
  932.                 Option.Select = Option.Select + 1
  933.                 if Option.Select > 4 then Option.Select = 2 end
  934.             end
  935.             PedSetWeapon(gPlayer,-1,0)
  936.            
  937.             if not PedIsPlaying(gPlayer,"/Global/1_06/HoboFly",true) then
  938.                 PedSetActionNode(gPlayer,"/Global/1_06/HoboFly","Act/Conv/1_06.act")
  939.             end
  940.             PedSetEffectedByGravity(gPlayer,false)
  941.            
  942.             gData.NoClip.CP,gData.NoClip.CH = gData.NoClip.CP + (GetStickValue(14,0)-GetStickValue(15,0))/20,gData.NoClip.CH + (GetStickValue(8,0)-GetStickValue(6,0))/20
  943.             local Speed,PPx,PPy,PPz = IsButtonPressed(7,0) and 7 or IsButtonPressed(14,0) and 0.05 or 1,PlayerGetPosXYZ()
  944.             local X1,Y1 = gData.Func.ForwardDir2D(gData.NoClip.CH,GetStickValue(17,0)/10*7)
  945.             local X2,Y2 = gData.Func.ForwardDir2D(gData.NoClip.CH+math.pi/2,GetStickValue(16,0)/10*7)
  946.            
  947.             if IsButtonBeingPressed(2,0) then
  948.                 gData.NoClip.FreeCam = not gData.NoClip.FreeCam
  949.                
  950.                 if gData.NoClip.FreeCam then
  951.                     local Cx,Cy,Cz = gData.Func.ForwardDir3D(gData.NoClip.CP,gData.NoClip.CH,-gData.NoClip.Dist*0.04)
  952.                     gData.NoClip.FCx,gData.NoClip.FCy,gData.NoClip.FCz = PPx + Cx,PPy + Cy,PPz + Cz + 1.5
  953.                 else
  954.                     gData.NoClip.FreeCam,gData.NoClip.FCx,gData.NoClip.FCy,gData.NoClip.FCz = false,nil,nil,nil
  955.                 end
  956.                
  957.             elseif gData.NoClip.FreeCam then
  958.                 gData.NoClip.FCx,gData.NoClip.FCy,gData.NoClip.FCz = gData.NoClip.FCx + X1 + X2,gData.NoClip.FCy + Y1 + Y2,gData.NoClip.FCz + gData.NoClip[69][gData.NoClip[69].Select][2]
  959.             else
  960.                 PPx,PPy,PPz = PPx + X1 + X2,PPy + Y1 + Y2,PPz + gData.NoClip[69][gData.NoClip[69].Select][2]
  961.                
  962.                 PlayerFaceHeading(gData.NoClip.CH)
  963.                 PlayerSetPosSimple(PPx,PPy,PPz)
  964.             end
  965.            
  966.             local Cx,Cy,Cz = gData.Func.ForwardDir3D(gData.NoClip.CP,gData.NoClip.CH,-gData.NoClip.Dist*0.04)
  967.             local CPx,CPy,CPz,CFx,CFy,CFz = gData.NoClip.FCx or PPx + Cx,gData.NoClip.FCy or PPy + Cy,gData.NoClip.FCz or PPz + Cz + 1.5,gData.NoClip.FCx and gData.NoClip.FCx - Cx or PPx,gData.NoClip.FCy and gData.NoClip.FCy - Cy or PPy,gData.NoClip.FCz and gData.NoClip.FCz - Cz or PPz + 1.5
  968.             CameraSetXYZ(CPx,CPy,CPz,CFx,CFy,CFz)
  969.         end
  970.        
  971.         -- Ped Voice:
  972.         if not PedIsModel(gPlayer,0) and PedIsValid(Target) and not PedIsValid(Grabbed) and not gData.Is_Busy and not gData.Is_Fighting then
  973.             if IsButtonBeingPressed(7,0) and not PedIsPlaying(Target,"/Global/"..PedGetActionTree(Target).."/Default_KEY/ExecuteNodes/LocomotionOverride/Combat",true) and not PlayerIsInAnyVehicle() then
  974.                 local Talk
  975.                
  976.                 if PedIsFemale(Target) then
  977.                     Talk = {
  978.                         "GREET",
  979.                         "GREET_HOT_GIRL",
  980.                         "GREET_GIRL_WON",
  981.                         "GREET_GIRL_WON",
  982.                     }
  983.                 else
  984.                     Talk = {
  985.                         "GREET",
  986.                         --"GREET_CLOTHES_LIKE",
  987.                         --"GREET_PANTS_LIKE",
  988.                         --"GREET_PLAYER_CLOTHES_LIKE",
  989.                         --"GREET_PLAYER_HAIRCUT_LIKE",
  990.                         --"GREET_PLAYER_HAT_LIKE",
  991.                         --"GREET_PLAYER_PANTS_LIKE",
  992.                         --"GREET_PLAYER_SHIRT_LIKE",
  993.                         --"GREET_PLAYER_SHOES_LIKE",
  994.                         --"GREET_PLAYER_TATTOO_LIKE",
  995.                     }
  996.                 end
  997.                 SoundPlayAmbientSpeechEvent(gPlayer,Talk[math.random(1,table.getn(Talk))])
  998.             elseif IsButtonBeingReleased(8,0) and not PedIsPlaying(gPlayer,"/Global/Player/JumpActions/Jump",true) then
  999.                 local Taunt
  1000.                
  1001.                 if PedIsFemale(PedGetTargetPed(gPlayer)) then
  1002.                     Taunt = {
  1003.                         "TAUNT",
  1004.                         "TAUNT_HARASS",
  1005.                         --"TAUNT_NEW_KID",
  1006.                     }
  1007.                 else
  1008.                     Taunt = {
  1009.                         "TAUNT",
  1010.                         "TAUNT_HARASS",
  1011.                         "VICTIMIZED",
  1012.                         "VICTMIZING",
  1013.                     }
  1014.                 end
  1015.                
  1016.                 SoundPlayAmbientSpeechEvent(gPlayer,Taunt[math.random(1,table.getn(Taunt))])
  1017.             elseif PedIsPlaying(gPlayer,"/Global/Player/Social_Actions/HarassMoves",true) and not gData.Voice.PlayerHarass then
  1018.                 SoundPlayAmbientSpeechEvent(gPlayer,"TAUNT_HARASS")
  1019.                 gData.Voice.PlayerHarass = true
  1020.             elseif not PedIsPlaying(gPlayer,"/Global/Player/Social_Actions/HarassMoves",true) and gData.Voice.PlayerHarass then
  1021.                 gData.Voice.PlayerHarass = false
  1022.             elseif PedIsPlaying(gPlayer,"/Global/Player/Gifts",true) and not gData.Voice.Gifts then
  1023.                 SoundPlayAmbientSpeechEvent(gPlayer,"CONGRATULATIONS")
  1024.                 gData.Voice.Gifts = true
  1025.             elseif not PedIsPlaying(gPlayer,"/Global/Player/Gifts",true) and gData.Voice.Gifts then
  1026.                 gData.Voice.Gifts = false
  1027.             elseif PedIsPlaying(gPlayer,"/Global/HitTree/Standing/Ranged/Bomb/Stinky",true) and not gData.Voice.Stinky then
  1028.                 SoundPlayAmbientSpeechEvent(gPlayer,"DISGUST")
  1029.                 gData.Voice.Stinky = true
  1030.             elseif not PedIsPlaying(gPlayer,"/Global/HitTree/Standing/Ranged/Bomb/Stinky",true) and gData.Voice.Stinky then
  1031.                 gData.Voice.Stinky = false
  1032.             elseif PlayerGetHealth() < 1 and not gData.Voice.Hurts then
  1033.                 SoundPlayAmbientSpeechEvent(gPlayer,"DEFEAT_INDIVIDUAL")
  1034.                 gData.Voice.Hurts = true
  1035.             elseif PlayerGetHealth() > 1 and gData.Voice.Hurts then
  1036.                 gData.Voice.Hurts = false
  1037.             elseif PedIsPlaying(gPlayer,"/Global/Player/Social_Actions/PositiveReaction/Apology",true) and not gData.Voice.Apology then
  1038.                 SoundPlayAmbientSpeechEvent(gPlayer,"CONVERSATION_END")
  1039.                 gData.Voice.Apology = true
  1040.             elseif not PedIsPlaying(gPlayer,"/Global/Player/Social_Actions/PositiveReaction/Apology",true) and gData.Voice.Apology then
  1041.                 gData.Voice.Apology = false
  1042.             end
  1043.         end
  1044.        
  1045.         --[[
  1046.         --Allies check: (No more)
  1047.         for Allies_ID = 1,table.getn(gData.CurrentAllies) do
  1048.             local Allies = gData.CurrentAllies[Allies_ID]
  1049.             if PedIsValid(Allies) and PedGetHealth(Allies) < 1 or not PedIsValid(Allies) then
  1050.                 table.remove(gData.CurrentAllies,Allies_ID)
  1051.             end
  1052.         end
  1053.         ]]
  1054.        
  1055.         -- All doors unlocked:
  1056.         for DOORS_ID,DOOR in ipairs(Doors) do
  1057.             AreaSetDoorLocked(DOOR,false)
  1058.         end
  1059.        
  1060.         Wait(0)
  1061.     end
  1062. end
  1063. UM_FixBugs = function()
  1064.     while true do
  1065.         if not PedIsModel(gPlayer,0) then
  1066.        
  1067.             -- Clothing Manager:
  1068.             if shared.PlayerInClothingManager then
  1069.                 PlayerSwapModel("player")
  1070.                
  1071.                 repeat
  1072.                     Wait(0)
  1073.                 until not shared.PlayerInClothingManager
  1074.                
  1075.                 PlayerSwapModel(gData.Model)
  1076.                 gData.Func.SetStyle(gPlayer,"Player")
  1077.                 if gData.Is_Fighting then
  1078.                     gData.Func.SetStyle(gPlayer,gData.Style)
  1079.                 end
  1080.             end
  1081.            
  1082.             -- Shoping:
  1083.             if shared.playerShopping then
  1084.                 PlayerSwapModel("player")
  1085.                
  1086.                 repeat
  1087.                     Wait(0)
  1088.                 until not shared.playerShopping
  1089.        
  1090.                 PlayerSwapModel(gData.Model)
  1091.                 gData.Func.SetStyle(gPlayer,"Player")
  1092.                 if gData.Is_Fighting then
  1093.                     gData.Func.SetStyle(gPlayer,gData.Style)
  1094.                 end
  1095.             end
  1096.            
  1097.             -- Unsupported model in mission:
  1098.             local Unsupported_Mission = {
  1099.                 "1_02B","3_08","2_08","2_09","3_01C","4_05","4_06","6_01","5_03","3_R09_J3",
  1100.                 "C_WRESTLING_1","C_WRESTLING_2","C_WRESTLING_3","C_WRESTLING_4","C_WRESTLING_5",
  1101.                 "1_11x1","1_11x2","3_R09_P3","2_R11_Chad","2_R11_Bryce","2_R11_Justin","2_R11_Parker",
  1102.                 "2_R11_Random","C_Dodgeball_1","C_Dodgeball_2","C_Dodgeball_3","C_Dodgeball_4",
  1103.                 "C_Dodgeball_5"
  1104.             }
  1105.             for i,v in ipairs(Unsupported_Mission) do
  1106.                 if MissionActiveSpecific(v) and not PedIsModel(gPlayer,0) then
  1107.                     gData.Func.SwapModel(gPlayer,"player","Player")
  1108.                 end
  1109.             end
  1110.            
  1111.             -- Annoying newsroll bug:
  1112.             if PlayerIsInAnyVehicle() and PlayerHasItem(320) then
  1113.                 RemovePlayerItem(320)
  1114.             end
  1115.            
  1116.             -- Fix fighting style bug:
  1117.             if not gData.Is_Fighting and not gData.Is_Busy then
  1118.                 if PedMePlaying(gPlayer,"DEFAULT_KEY") and PedHasWeapon(gPlayer,-1) and not PlayerIsInAnyVehicle() then
  1119.                     if IsButtonBeingPressed(6,0) then
  1120.                         if not PedIsPlaying(gPlayer,"/Global/Player",true) then
  1121.                             gData.Func.SetStyle(gPlayer,"Player")
  1122.                         end
  1123.                     end
  1124.                     if not gData.Func.IsMoving() then
  1125.                         PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  1126.                     end
  1127.                 end
  1128.                 PedSetFlag(gPlayer,50,false)
  1129.             end
  1130.         end
  1131.        
  1132.         Wait(0)
  1133.     end
  1134. end
  1135. UM_Movements = function()
  1136.     while true do
  1137.         local Target,Grabbed = PedGetTargetPed(gPlayer),PedGetGrappleTargetPed(gPlayer)
  1138.        
  1139.         F_InBoxingOrGym = function()
  1140.             local Missions = {
  1141.                 "3_R09_P3","2_R11_Chad","2_R11_Bryce","2_R11_Justin","2_R11_Parker",
  1142.                 "2_R11_Random","3_R09_J3","C_Wrestling_1","C_Wrestling_2","C_Wrestling_3",
  1143.                 "C_Wrestling_4","C_Wrestling_5","C_Dodgeball_1","C_Dodgeball_2","C_Dodgeball_3",
  1144.                 "C_Dodgeball_4","C_Dodgeball_5"
  1145.             }
  1146.             for MISSION_ID,MISSION in ipairs(Missions) do
  1147.                 if MissionActiveSpecific(MISSION) then
  1148.                     return true
  1149.                 end
  1150.             end
  1151.             return false
  1152.         end
  1153.         if gData.Is_Fighting and not PedIsValid(Grabbed) and not F_InBoxingOrGym() then
  1154.             -- This is not the correct order of Jimmy BETA Fighting Style, only deadpoolXYZ know the original BETA 5 punches combo:
  1155.             if gData.Style == "James_BETA" then
  1156.                 if IsButtonBeingPressed(7,0) and gData.James_BETA.Combo == 1 and PedHasWeapon(gPlayer,-1) and PedMePlaying(gPlayer,"DEFAULT_KEY") then
  1157.                     PedSetActionNode(gPlayer,"/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB","Act/Anim/Nemesis.act")
  1158.                    
  1159.                     while PedIsPlaying(gPlayer,"/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB",true) do
  1160.                         if PedIsPlaying(gPlayer,"/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB/HeavyAttacks/SuperUppercut",true) then
  1161.                             PlayerStopAllActionControllers()
  1162.                             break
  1163.                         end
  1164.                         Wait(0)
  1165.                     end
  1166.                     gData.James_BETA.Combo = 2
  1167.                 elseif IsButtonBeingPressed(6,0) and gData.James_BETA.Combo == 2 then
  1168.                     PedSetActionNode(gPlayer,"/Global/Player/Attacks/GroundAttacks/GroundAttacks/Strikes/HeavyAttacks/GroundKick","act/anim/Player.act")
  1169.                     gData.James_BETA.Combo = 1
  1170.                 elseif IsButtonBeingPressed(7,0) and gData.James_BETA.Combo == 2 then
  1171.                     PedSetActionNode(gPlayer,"/Global/Nemesis/Offense/Short/Strikes/LightAttacks/LeftHook/RightCross","Act/Anim/Nemesis.act")
  1172.                    
  1173.                     while PedIsPlaying(gPlayer,"/Global/Nemesis/Offense/Short/Strikes/LightAttacks/LeftHook/RightCross",true) do
  1174.                         if PedIsPlaying(gPlayer,"/Global/Nemesis/Offense/Short/Strikes/LightAttacks/LeftHook/RightCross/HeavyAttacks",true) then
  1175.                             PlayerStopAllActionControllers()
  1176.                             break
  1177.                         end
  1178.                         Wait(0)
  1179.                     end
  1180.                     gData.James_BETA.Combo = 3
  1181.                 elseif IsButtonPressed(6,0) and gData.James_BETA.Combo == 3 then
  1182.                     PedSetActionNode(gPlayer,"/Global/Player/Attacks/Strikes/LightAttacks/Left1/Right2/Release/Unblockable/LegKickReleaseMax","Act/Anim/Player.act")
  1183.                     gData.James_BETA.Combo = 1
  1184.                 elseif IsButtonBeingPressed(7,0) and gData.James_BETA.Combo == 3 then
  1185.                     PedSetActionNode(gPlayer,"/Global/Nemesis/Offense/Short/Strikes/LightAttacks/LeftHook","Act/Anim/Nemesis.act")
  1186.                    
  1187.                     while PedIsPlaying(gPlayer,"/Global/Nemesis/Offense/Short/Strikes/LightAttacks/LeftHook",true) do
  1188.                         if PedIsPlaying(gPlayer,"/Global/Nemesis/Offense/Short/Strikes/LightAttacks/LeftHook/RightCross",true) then
  1189.                             PlayerStopAllActionControllers()
  1190.                             break
  1191.                         end
  1192.                         Wait(0)
  1193.                     end
  1194.                     gData.James_BETA.Combo = 4
  1195.                 elseif IsButtonPressed(6,0) and gData.James_BETA.Combo == 4 then
  1196.                     PedSetActionNode(gPlayer,"/Global/Player/Attacks/Strikes/LightAttacks/Left1/Right2/Left3/Right4/Release/Unblockable","Act/Anim/Player.act")
  1197.                     gData.James_BETA.Combo = 1
  1198.                 elseif IsButtonBeingPressed(7,0) and gData.James_BETA.Combo == 4 then
  1199.                     PedSetActionNode(gPlayer,"/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB/HeavyAttacks/SuperUppercut","Act/Anim/Nemesis.act")
  1200.                    
  1201.                     while PedIsPlaying(gPlayer,"/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB/HeavyAttacks/SuperUppercut",true) do
  1202.                         if PedIsPlaying(gPlayer,"/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB/HeavyAttacks/SuperUppercut/Knee",true) then
  1203.                             PlayerStopAllActionControllers()
  1204.                             break
  1205.                         end
  1206.                         Wait(0)
  1207.                     end
  1208.                     gData.James_BETA.Combo = 5
  1209.                 elseif IsButtonBeingPressed(6,0) and gData.James_BETA.Combo == 5 then
  1210.                     PedSetActionNode(gPlayer,"/Global/Nemesis/Offense/Medium/Strikes/HeavyAttacks/JackieKick","Act/Anim/Nemesis.act")
  1211.                     gData.James_BETA.Combo = 1
  1212.                 elseif IsButtonBeingPressed(7,0) and gData.James_BETA.Combo == 5 then
  1213.                     PedSetActionNode(gPlayer,"/Global/Player/Attacks/Strikes/LightAttacks/Left1/Right2/Left3/Right4/Left5/Release/UpperCut","act/anim/Player.act")
  1214.                     gData.James_BETA.Combo = 1
  1215.                 end
  1216.             elseif gData.Style == "Nemesis" then
  1217.                 if PedMePlaying(gPlayer,"DEFAULT_KEY") then
  1218.                     if IsButtonBeingPressed(6,0) then
  1219.                         PedSetActionNode(gPlayer,"/Global/Nemesis/Offense/Short/Strikes/HeavyAttacks/HeavyPunch1","Act/Anim/Nemesis.act")
  1220.                     elseif IsButtonBeingPressed(8,0) then
  1221.                         PedSetActionNode(gPlayer,"/Global/Nemesis/Offense/Medium/Strikes/HeavyAttacks/JackieKick","Act/Anim/Nemesis.act")
  1222.                     elseif IsButtonBeingPressed(11,0) then
  1223.                         PedSetAITree(gPlayer,"/Global/DarbyAI","Act/AI_DARBY_2_B.act")
  1224.                         PedSetFlag(gPlayer,87,true)
  1225.                        
  1226.                         ExecuteActionNode(gPlayer,"/Global/Nemesis/Offense/Medium/Strikes/LightAttacks/OverHandR","act/anim/Nemesis.act")
  1227.                        
  1228.                         PedSetFlag(gPlayer,87,false)
  1229.                         PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  1230.                     elseif IsButtonBeingPressed(9,0) then
  1231.                         if MissionActiveSpecific("6_B") then
  1232.                             if PedIsValid(Target) then
  1233.                                 PedSetActionNode(gPlayer,"/Global/Nemesis/Special/GarySpecialGrapple","Act/Anim/Nemesis.act")
  1234.                             end
  1235.                         else
  1236.                             PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Front/Grapples/GrappleAttempt","Act/Globals.act")
  1237.                         end
  1238.                     end
  1239.                 end
  1240.             elseif gData.Style == "B_Striker_A" then
  1241.                 if PedMePlaying(gPlayer,"DEFAULT_KEY") then
  1242.                     if PedIsModel(gPlayer,176) or PedIsModel(gPlayer,75) then
  1243.                         local Random_Taunt = math.random(1,6)
  1244.                         local Russell_Taunt = {2,5,7,8,10,12}
  1245.                         if IsButtonBeingPressed(6,0) then
  1246.                             local Random_Attacks = math.random(1,3)
  1247.                             local Punch = {
  1248.                                 {"/Global/Russell_102/Offense/Short/Medium/RisingAttacks","act/anim/Russell_102.act"},
  1249.                                 {"/Global/BOSS_Russell/Defense/Evade/EvadeInterrupt/EvadeInterrupt","act/anim/BOSS_Russell.act"},
  1250.                                 {"/Global/BOSS_Russell/Offense/Medium/Strikes/Unblockable/DoubleAxeHandle","act/anim/BOSS_Russell.act"},
  1251.                             }
  1252.                             PedSetActionNode(gPlayer,Punch[Random_Attacks][1],Punch[Random_Attacks][2])
  1253.                             SoundPlayScriptedSpeechEvent(gPlayer,"M_1_B",Russell_Taunt[Random_Taunt],"large")
  1254.                         elseif IsButtonBeingPressed(7,0) then
  1255.                             local Random_Attacks = math.random(1,3)
  1256.                             if Random_Attacks == 3 then
  1257.                                 PedSetActionNode(gPlayer,"/Global/BOSS_Russell/Offense/Short/Strikes/LightAttacks/OverHand","act/anim/BOSS_Russell.act")
  1258.                             end
  1259.                         elseif IsButtonBeingPressed(8,0) and PedIsValid(Target) then
  1260.                             PedSetAITree(gPlayer,"/Global/RusselAI","Act/AI/AI_RUSSEL_1_B.act")
  1261.                             PedSetFlag(gPlayer,87,true)
  1262.                            
  1263.                             PedSetActionNode(gPlayer,"/Global/BOSS_Russell/Offense/Special/Invincible/HeadButt/HeadButt_AnticStart","act/anim/BOSS_Russell.act")
  1264.                            
  1265.                             PedSetFlag(gPlayer,87,false)
  1266.                             PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  1267.                             SoundPlayScriptedSpeechEvent(gPlayer,"M_1_B",Russell_Taunt[Random_Taunt],"large")
  1268.                         elseif IsButtonBeingPressed(9,0) and PedIsValid(Target) then
  1269.                             PedSetAITree(gPlayer,"/Global/RusselAI","Act/AI/AI_RUSSEL_1_B.act")
  1270.                             PedSetFlag(gPlayer,87,true)
  1271.                            
  1272.                             PedSetActionNode(gPlayer,"/Global/BOSS_Russell/Offense/Special/Invincible/BarserkGrapple","act/anim/BOSS_Russell.act")
  1273.                            
  1274.                             PedSetFlag(gPlayer,87,false)
  1275.                             PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  1276.                             SoundPlayScriptedSpeechEvent(gPlayer,"M_1_B",Russell_Taunt[Random_Taunt],"large")
  1277.                         elseif IsButtonBeingPressed(15,0) then
  1278.                             PedSetActionNode(gPlayer,"/Global/BOSS_Russell/Offense/GroundAttack/GroundStomp1","act/anim/BOSS_Russell.act")
  1279.                             SoundPlayScriptedSpeechEvent(gPlayer,"M_1_B",Russell_Taunt[Random_Taunt],"large")
  1280.                         elseif IsButtonBeingPressed(11,0) then
  1281.                             PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Front/Grapples/GrappleAttempt","Act/Globals.act")
  1282.                             Wait(200)
  1283.                             if PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  1284.                                 PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Front/Grapples/GrappleMoves/PowerBomb","Globals/BOSS_Russell.act")
  1285.                                 SoundPlayScriptedSpeechEvent(gPlayer,"M_1_B",Russell_Taunt[Random_Taunt],"large")
  1286.                             end
  1287.                         end
  1288.                     else
  1289.                         if IsButtonBeingPressed(6,0) then
  1290.                             local Random_Attacks = math.random(1,2)
  1291.                             local Punch = {
  1292.                                 {"/Global/B_Striker_A/Offense/Short/Strikes/HeavyAttacks/SwingPunch/SwingPunch_R","act/anim/B_Striker_A.act"},
  1293.                                 {"/Global/B_Striker_A/Offense/Short/Strikes/HeavyAttacks/GutKick/GutKick_R","act/anim/B_Striker_A.act"},
  1294.                             }
  1295.                             PedSetActionNode(gPlayer,Punch[Random_Attacks][1],Punch[Random_Attacks][2])
  1296.                         elseif IsButtonBeingPressed(11,0) then
  1297.                             PedSetActionNode(gPlayer,"/Global/B_Striker_A/Offense/Short/Strikes/HeavyAttacks/GutKick/GutKick_R","act/anim/B_Striker_A.act")
  1298.                         elseif IsButtonBeingPressed(8,0) then
  1299.                             PedSetActionNode(gPlayer,"/Global/Actions/Grapples/RunningTakedown","Act/Globals.act")
  1300.                         end
  1301.                     end
  1302.                 end
  1303.             elseif gData.Style == "P_Striker_A" then
  1304.                 if PedGetWeapon(gPlayer) ~= -1 then
  1305.                     PedSetWeaponNow(gPlayer,-1)
  1306.                 end
  1307.                 if PedIsPlaying(gPlayer,"/Global/P_Striker_A/Offense/Short/Strikes/LightAttacks/LeftHook","act/anim/P_Striker_A.act") then
  1308.                     while PedIsPlaying(gPlayer,"/Global/P_Striker_A/Offense/Short/Strikes/LightAttacks/LeftHook",true) and not PedIsPlaying(gPlayer,"/Global/P_Striker_A/Offense/Short/Strikes/LightAttacks/LeftHook/FinishingCross",true) do
  1309.                         Wait(0)
  1310.                     end
  1311.                    
  1312.                     local random_attacks = math.random(1,2)
  1313.                     if random_attacks == 1 then
  1314.                         PedSetActionNode(gPlayer,"/Global/P_Striker_A/Offense/Short/Strikes/LightAttacks/LeftHook/FinishingCross","act/anim/P_Striker_A.act")
  1315.                     else
  1316.                         PedSetActionNode(gPlayer,"/Global/P_Striker_A/Offense/Short/Strikes/HeavyAttacks/Uppercut","act/anim/P_Striker_A.act") end
  1317.                 end
  1318.                 if PedMePlaying(gPlayer,"DEFAULT_KEY") then
  1319.                     if PedIsModel(gPlayer,37) or PedIsModel(gPlayer,218) then
  1320.                         if IsButtonBeingPressed(11,0) then
  1321.                             PedSetActionNode(gPlayer,"/Global/BOSS_Darby/Offense/NonCombatActions/Hopback","act/anim/BOSS_Darby.act")
  1322.                         elseif IsButtonBeingPressed(6,0) then
  1323.                             local Random_Attacks = math.random(1,2)
  1324.                             local Punch = {
  1325.                                 {"/Global/BOSS_Darby/Offense/Short/Grapples/HeavyAttacks/Catch_Throw", "act/anim/BOSS_Darby.act"},
  1326.                                 {"/Global/BOSS_Darby/Offense/Short/Grapples/HeavyAttacks/Catch_Throw/Finisher", "act/anim/BOSS_Darby.act"},
  1327.                             }
  1328.                             PedSetAITree(gPlayer,"/Global/DarbyAI","Act/AI_DARBY_2_B.act")
  1329.                             PedSetActionNode(gPlayer,Punch[Random_Attacks][1],Punch[Random_Attacks][2])
  1330.                             PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  1331.                         elseif IsButtonBeingPressed(8,0) then
  1332.                             PedSetActionNode(gPlayer,"/Global/BOSS_Darby/Offense/Short/Strikes/Unblockable/HeavyPunchCharge/HeavyPunch","act/anim/BOSS_Darby.act")
  1333.                         elseif IsButtonBeingPressed(7,0) then
  1334.                             local Random_Attacks = math.random(1,4)
  1335.                             if Random_Attacks == 3 then
  1336.                                 PedSetActionNode(gPlayer,"/Global/BOSS_Darby/Offense/Short/Strikes/LightAttacks/LeftHook", "act/anim/BOSS_Darby.act")
  1337.                             end
  1338.                         end
  1339.                     elseif PedIsModel(gPlayer,33) or PedIsModel(gPlayer,133) or PedIsModel(gPlayer,172) or PedIsModel(gPlayer,243) then
  1340.                         if IsButtonBeingPressed(7,0) then
  1341.                             PedSetAITree(gPlayer,"/Global/AI_BOXER","Act/AI/AI_BOXER.act")
  1342.                             PedSetFlag(gPlayer,87,true)
  1343.                            
  1344.                             PedSetActionNode(gPlayer,"/Global/P_Bif/Offense/Short/LightAttacks","act/anim/P_Bif.act")
  1345.                            
  1346.                             PedSetFlag(gPlayer,87,false)
  1347.                             PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  1348.                         elseif IsButtonBeingPressed(6,0) then
  1349.                             local Random_Attacks = math.random(1,2)
  1350.                             local Punch = {
  1351.                                 {"/Global/P_Bif/Offense/Short/HeavyAttacks/LeftHook","act/anim/P_Bif.act"},
  1352.                                 {"/Global/P_Bif/Offense/Short/HeavyAttacks/RightHook","act/anim/P_Bif.act"},
  1353.                             }
  1354.                            
  1355.                             PedSetAITree(gPlayer,"/Global/AI_BOXER","Act/AI/AI_BOXER.act")
  1356.                             PedSetFlag(gPlayer,87,true)
  1357.                            
  1358.                             PedSetActionNode(gPlayer,"/Global/P_Bif/Offense/Medium/HeavyAttacks/GutPunch","act/anim/P_Bif.act")
  1359.                            
  1360.                             PedSetFlag(gPlayer,87,false)
  1361.                             PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  1362.                         elseif IsButtonBeingPressed(15,0) then
  1363.                             PedSetAITree(gPlayer,"/Global/AI_BOXER","Act/AI/AI_BOXER.act")
  1364.                             PedSetFlag(gPlayer,87,true)
  1365.                            
  1366.                             PedSetActionNode(gPlayer,"/Global/P_Bif/Offense/Medium/HeavyAttacks/StraightPunch","act/anim/P_Bif.act")
  1367.                            
  1368.                             PedSetFlag(gPlayer,87,false)
  1369.                             PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  1370.                         end
  1371.                     else
  1372.                         if IsButtonBeingPressed(11,0) then
  1373.                             PedSetActionNode(gPlayer,"/Global/P_Striker_A/Offense/Short/Strikes/HeavyAttacks/Uppercut","act/anim/P_Striker_A.act")
  1374.                         elseif IsButtonBeingPressed(6,0) then
  1375.                             PedSetAITree(gPlayer,"/Global/DarbyAI","Act/AI_DARBY_2_B.act")
  1376.                             PedSetFaction(gPlayer,5)
  1377.                            
  1378.                             PedSetActionNode(gPlayer,"/Global/P_Striker_A/Offense/Medium/HeavyAttacks","act/anim/P_Striker_A.act")
  1379.                            
  1380.                             PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  1381.                             PedSetFaction(gPlayer,13)
  1382.                         end
  1383.                        
  1384.                         for i,ped in {PedFindInAreaXYZ(0,0,0,99999)} do
  1385.                             if PedIsValid(ped) and ped ~= gPlayer then
  1386.                                
  1387.                                 if PedGetTargetPed(ped) == gPlayer and PedIsPlaying(ped,"/Global/"..PedGetActionTree(ped).."/Offense",true) or PedIsPlaying(ped,"/Global/"..PedGetActionTree(ped).."/Attacks",true) then
  1388.                                     local x,y,z = PlayerGetPosXYZ()
  1389.                                     local x1,y1,z1 = PedGetPosXYZ(ped)
  1390.                                    
  1391.                                     if math.abs(x - x1) + math.abs(y - y1) + math.abs(z - z1) < 3 then
  1392.                                         PlayerSetControl(0)
  1393.                                         PedAttack(gPlayer,ped,1)
  1394.                                         PedFaceXYZ(gPlayer,x1,y1,z1)
  1395.                                         local CurrentHealth,MaxHealth = PlayerGetHealth(),PedGetMaxHealth(gPlayer)
  1396.                                        
  1397.                                         PedSetStatsType(gPlayer,"STAT_P_STRIKER_A")
  1398.                                         PedSetAITree(gPlayer,"/Global/AI","Act/AI/AI.act")
  1399.                                        
  1400.                                         local Stat = {[8] = 0,[12] = 0,[13] = 999,[38] = 100,[39] = 100}
  1401.                                         for Num,Stats in ipairs(Stat) do
  1402.                                             GameSetPedStat(gPlayer,Num,Stats)
  1403.                                         end
  1404.                                        
  1405.                                         Wait(200)
  1406.                                        
  1407.                                         PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  1408.                                         PedSetStatsType(gPlayer,"STAT_PLAYER")
  1409.                                         PedSetMaxHealth(gPlayer,MaxHealth)
  1410.                                         PlayerSetHealth(CurrentHealth)
  1411.                                         PlayerSetControl(1)
  1412.                                     end
  1413.                                 end
  1414.                             end
  1415.                         end
  1416.                     end
  1417.                 end
  1418.             elseif gData.Style == "P_Striker_B" then
  1419.                 if PedMePlaying(gPlayer,"DEFAULT_KEY") then
  1420.                     if IsButtonBeingPressed(6,0) then
  1421.                         local Random_Attacks = math.random(1,2)
  1422.                         local Punch = {
  1423.                             {"/Global/P_Striker_B/Offense/Short/Strikes/HeavyAttacks/Hook2","act/anim/P_Striker_B.act"},
  1424.                             {"/Global/P_Striker_B/Offense/Short/Strikes/Unblockable/HeavyPunchCharge","act/anim/P_Striker_B.act"},
  1425.                         }
  1426.                         PedSetActionNode(gPlayer,Punch[Random_Attacks][1],Punch[Random_Attacks][2])
  1427.                     elseif IsButtonBeingPressed(8,0) then
  1428.                         PedSetActionNode(gPlayer,"/Global/P_Striker_B/Offense/Short/Grapples/HeavyAttacks/Catch_Throw","act/anim/P_Striker_B.act")
  1429.                     elseif IsButtonBeingPressed(11,0) then
  1430.                         PedSetActionNode(gPlayer,"/Global/P_Striker_B/Defense/Evade/EvadeBack/EvadeBack","act/anim/P_Striker_B.act")
  1431.                     end
  1432.                 end
  1433.             elseif gData.Style == "P_Grappler_A" then
  1434.                 if PedMePlaying(gPlayer,"DEFAULT_KEY") then
  1435.                     if IsButtonBeingPressed(6,0) then
  1436.                         PedSetActionNode(gPlayer,"/Global/P_Grappler_A/Offense/Short/Strikes/Unblockable/HeavyPunchCharge","act/anim/P_Grappler_A.act")
  1437.                     elseif IsButtonBeingPressed(8,0) then
  1438.                         PedSetActionNode(gPlayer,"/Global/P_Grappler_A/Offense/Medium/Strikes/Kick/TauntKick","act/anim/P_Grappler_A.act")
  1439.                     elseif IsButtonBeingPressed(11,0) then
  1440.                         local Random_Evades = math.random(1,2)
  1441.                         local Evades = {
  1442.                             {"/Global/P_Grappler_A/Offense/NonCombatActions/Hopback","act/anim/P_Grappler_A.act"},
  1443.                             {"/Global/P_Grappler_A/Defense/Evade/EvadeBack/Evade","act/anim/P_Grappler_A.act"},
  1444.                         }
  1445.                         PedSetActionNode(gPlayer,Evades[Random_Evades][1],Evades[Random_Evades][2])
  1446.                     end
  1447.                 end
  1448.             elseif gData.Style == "G_Striker_A" then
  1449.                 if PedMePlaying(gPlayer,"DEFAULT_KEY") then
  1450.                     if PedIsModel(gPlayer,23) or PedIsModel(gPlayer,217) then
  1451.                         if IsButtonBeingPressed(6,0) then
  1452.                             local Random_Attacks = math.random(1,3)
  1453.                             local Punch = {
  1454.                                 {"/Global/G_Johnny/Offense/Medium/Strikes/HeavyAttack","act/anim/G_Johnny.act"},
  1455.                                 {"/Global/G_Johnny/Offense/Medium/Strikes/HeavyAttack/HeavyKick","act/anim/G_Johnny.act"},
  1456.                                 {"/Global/G_Johnny/Offense/Short/Strikes/HeavyKick/HeavyKick","act/anim/G_Johnny.act"},
  1457.                             }
  1458.                             PedSetAITree(gPlayer,"/Global/DarbyAI","Act/AI_DARBY_2_B.act")
  1459.                             PedSetFlag(gPlayer,87,true)
  1460.                             PedSetActionNode(gPlayer,Punch[Random_Attacks][1],Punch[Random_Attacks][2])
  1461.                             PedSetFlag(gPlayer,87,false)
  1462.                             PedSetAITree(gPlayer, "/Global/PlayerAI", "Act/PlayerAI.act")
  1463.                         elseif IsButtonBeingPressed(8,0) and PedIsValid(Target) then
  1464.                             if PedIsPlaying(Target,"/Global/HitTree",true) then
  1465.                                 PedSetActionNode(gPlayer,"/Global/G_Striker_A/Offense/GroundAttack/GroundPunch","Act/Anim/G_Striker_A.act")
  1466.                             else
  1467.                                 PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Front/Grapples/GrappleAttempt","Act/Globals.act")
  1468.                                 Wait(200)
  1469.                                 if PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  1470.                                     PedSetActionNode(gPlayer,"/Global/G_Johnny/Offense/Short/Strikes/HeavyKick/HeavyKick/Grabknees","act/anim/G_Johnny.act")
  1471.                                 end
  1472.                             end
  1473.                         elseif IsButtonBeingPressed(11,0) then
  1474.                             PedSetActionNode(gPlayer,"/Global/G_Johnny/Offense/Special/SpecialActions/LightAttacks","act/anim/G_Johnny.act")
  1475.                         elseif IsButtonBeingPressed(9,0) and PedIsValid(Target) then
  1476.                             PedSetActionNode(gPlayer,"/Global/G_Johnny/Offense/Special/SpecialActions/Grapples/Dash","Act/Anim/G_Johnny.act")
  1477.                         end
  1478.                     else
  1479.                         if IsButtonBeingPressed(6,0) then
  1480.                             local Random_Attacks = math.random(1,2)
  1481.                             local Punch = {
  1482.                                 {"/Global/G_Striker_A/Offense/Medium/Strikes/HeavyAttack/KickThrust","act/anim/G_Striker_A.act"},
  1483.                                 {"/Global/G_Striker_A/Offense/Short/Strikes/HeavyAttacks/HeavyKick","act/anim/G_Striker_A.act"}
  1484.                             }
  1485.                             PedSetAITree(gPlayer,"/Global/DarbyAI","Act/AI_DARBY_2_B.act")
  1486.                             PedSetActionNode(gPlayer,Punch[Random_Attacks][1],Punch[Random_Attacks][2])
  1487.                             PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  1488.                         elseif IsButtonBeingPressed(9,0) and PedIsValid(Target) then
  1489.                             PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Front/Grapples/GrappleAttempt","Act/Globals.act")
  1490.                             Wait(200)
  1491.                             if PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  1492.                                 PedSetActionNode(gPlayer,"/Global/G_Striker_A/Offense/Short/Strikes/HeavyAttacks/HeavyKick/GrabKnees","act/anim/G_Striker_A.act")
  1493.                             end
  1494.                         elseif IsButtonBeingPressed(11,0) then
  1495.                             PedSetActionNode(gPlayer,"/Global/G_Striker_A/Offense/Short/Strikes/HeavyAttacks/HeavyKnee","act/anim/G_Striker_A.act")
  1496.                         elseif IsButtonBeingPressed(8,0) then
  1497.                             PedSetActionNode(gPlayer,"/Global/G_Striker_A/Offense/GroundAttack/GroundPunch","Act/Anim/G_Striker_A.act")
  1498.                         end
  1499.                     end
  1500.                 end
  1501.             elseif gData.Style == "G_Melee_A" then
  1502.                 if PedMePlaying(gPlayer,"DEFAULT_KEY") then
  1503.                     if IsButtonBeingPressed(6,0) then
  1504.                         local Random_Attacks = math.random(1,2)
  1505.                         local Punch = {
  1506.                             {"/Global/G_Melee_A/Offense/Medium/Strikes/HeavyAttacks","act/anim/G_Melee_A.act"},
  1507.                             {"/Global/G_Melee_A/Offense/Medium/Strikes/HeavyAttacks/HeavyKick","act/anim/G_Melee_A.act"},
  1508.                         }
  1509.                         PedSetAITree(gPlayer,"/Global/DarbyAI","Act/AI_DARBY_2_B.act")
  1510.                         PedSetActionNode(gPlayer,Punch[Random_Attacks][1],Punch[Random_Attacks][2])
  1511.                         PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  1512.                     elseif IsButtonBeingPressed(9,0) and PedIsValid(Target) then
  1513.                         PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Front/Grapples/GrappleAttempt","Act/Globals.act")
  1514.                         Wait(200)
  1515.                         if PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  1516.                             PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Front/Grapples/GrappleOpps/Melee/Greaser/GrabKnees","Globals/G_Melee_A.act")
  1517.                         end
  1518.                     elseif IsButtonBeingPressed(11,0) then
  1519.                         PedSetActionNode(gPlayer,"/Global/G_Melee_A/Offense/Short/Strikes/HeavyAttacks","act/anim/G_Melee_A.act")
  1520.                     elseif IsButtonBeingPressed(8,0) then
  1521.                         PedSetActionNode(gPlayer,"/Global/G_Melee_A/Offense/GroundAttack/GroundPunch","Act/Anim/G_Melee_A.act")
  1522.                     end
  1523.                 end
  1524.             elseif gData.Style == "G_Grappler_A" then
  1525.                 if PedMePlaying(gPlayer,"DEFAULT_KEY") then
  1526.                     if PedIsValid(Target) then
  1527.                         if IsButtonBeingPressed(9,0) and PedIsValid(Target) then
  1528.                             PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Front/Grapples/GrappleAttempt","Act/Globals.act")
  1529.                             Wait(200)
  1530.                             if PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  1531.                                 PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Front/Grapples/GrappleMoves/BearHug","Globals/G_Grappler_A.act")
  1532.                             end
  1533.                         end
  1534.                     end
  1535.                 end
  1536.             elseif gData.Style == "J_Striker_A" then
  1537.                 if PedMePlaying(gPlayer,"DEFAULT_KEY") then
  1538.                     if PedIsModel(gPlayer,205) or PedIsModel(gPlayer,12) or PedIsModel(gPlayer,112) or PedIsModel(gPlayer,168) then
  1539.                         if IsButtonBeingPressed(6,0) then
  1540.                             PedSetAITree(gPlayer,"/Global/DarbyAI","Act/AI_DARBY_2_B.act")
  1541.                             PedSetActionNode(gPlayer,"/Global/J_Striker_A/Offense/Medium/Grapples/GrapplesAtempt/Takedown","act/anim/J_Striker_A.act")
  1542.                             PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  1543.                         elseif IsButtonBeingPressed(8,0) and PedIsValid(Target) then
  1544.                             PedSetActionNode(gPlayer,"/Global/J_Damon/Offense/SpecialStart/StartRun","act/anim/J_Damon.act")
  1545.                         end
  1546.                     elseif PedIsModel(gPlayer,216) or PedIsModel(gPlayer,19) or PedIsModel(gPlayer,110) then
  1547.                         if IsButtonBeingPressed(8,0) then
  1548.                             PedSetAITree(gPlayer,"/Global/DarbyAI","Act/AI_DARBY_2_B.act")
  1549.                             PedSetActionNode(gPlayer,"/Global/J_Striker_A/Offense/Medium/Grapples/GrapplesAtempt/Takedown","act/anim/J_Striker_A.act")
  1550.                             PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  1551.                         elseif IsButtonBeingPressed(6,0) then
  1552.                             PedSetActionNode(gPlayer,"/Global/J_Ted/Offense/Short/Strikes/LightAttacks/JAB/Elbow/HeavyAttacks/Uppercut","act/anim/J_Ted.act")
  1553.                         end
  1554.                     else
  1555.                         if IsButtonBeingPressed(6,0) then
  1556.                             PedSetActionNode(gPlayer,"/Global/J_Striker_A/Offense/Medium/Grapples/GrapplesAtempt/Takedown","act/anim/J_Striker_A.act")
  1557.                         end
  1558.                     end
  1559.                 end
  1560.             elseif gData.Style == "J_Grappler_A" then
  1561.                 if PedMePlaying(gPlayer,"DEFAULT_KEY") then
  1562.                     if PedIsValid(Target) then
  1563.                         if IsButtonBeingPressed(9,0) and PedIsValid(Target) then
  1564.                             PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Front/Grapples/GrappleAttempt","Act/Globals.act")
  1565.                             Wait(200)
  1566.                             if PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  1567.                                 PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Front/Grapples/GrappleMoves/BackBreaker","Globals/J_Grappler_A.act")
  1568.                             end
  1569.                         elseif IsButtonBeingPressed(6,0) and PedIsValid(Target) then
  1570.                             PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Front/Grapples/GrappleAttempt","Act/Globals.act")
  1571.                             Wait(200)
  1572.                             if PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  1573.                                 PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Front/Grapples/GrappleMoves/BodySlam","Globals/J_Grappler_A.act")
  1574.                             end
  1575.                         end
  1576.                     end
  1577.                     if IsButtonBeingPressed(7,0) then
  1578.                         PedSetActionNode(gPlayer,"/Global/J_Grappler_A/Offense/Medium/Strikes/HeavyAttacks/RightPunch","act/anim/J_Grappler_A.act")
  1579.                     end
  1580.                 end
  1581.             elseif gData.Style == "DO_Grappler_A" then
  1582.                 if PedMePlaying(gPlayer,"DEFAULT_KEY") then
  1583.                     if IsButtonBeingPressed(8,0) then
  1584.                         PedSetActionNode(gPlayer,"/Global/Actions/Grapples/RunningTakedown","Act/Globals.act")
  1585.                        
  1586.                         Wait(1500)
  1587.                         if PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  1588.                             local Random_Attacks = math.random(1,2)
  1589.                             local Punch = {
  1590.                                 {"/Global/Actions/Grapples/Mount/MountOpps/Dropout/HeadButt","Globals/DO_Grappler_A.act"},
  1591.                                 {"/Global/Actions/Grapples/Mount/MountOpps/Dropout/KneeDrop","Globals/DO_Grappler_A.act"}
  1592.                             }
  1593.                             PedSetAITree(gPlayer,"/Global/DarbyAI","Act/AI_DARBY_2_B.act")
  1594.                             PedSetActionNode(gPlayer,Punch[Random_Attacks][1],Punch[Random_Attacks][2])
  1595.                             PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  1596.                         end
  1597.                     end
  1598.                 end
  1599.             elseif gData.Style == "DO_Striker_A" then
  1600.                 if PedMePlaying(gPlayer,"DEFAULT_KEY") then
  1601.                     if IsButtonBeingPressed(6,0) then
  1602.                         local Random_Attacks = math.random(1,2)
  1603.                         local Punch = {
  1604.                             {"/Global/DO_Edgar/Offense/Short/LightAttacks/Punch1/Punch2/HeavyAttacks/Punch3","Act/DO_Edgar.act"},
  1605.                             {"/Global/DO_Striker_A/Offense/Medium/HeavyAttacks","act/anim/DO_Striker_A.act"},
  1606.                         }
  1607.                         PedSetActionNode(gPlayer,Punch[Random_Attacks][1],Punch[Random_Attacks][2])
  1608.                     elseif IsButtonBeingPressed(8,0) then
  1609.                         PedSetAITree(gPlayer,"/Global/AI_EDGAR_5_B","Act/AI/AI_EDGAR_5_B.act")
  1610.                         PedSetFlag(gPlayer,87,true)
  1611.                        
  1612.                         PedSetActionNode(gPlayer,"/Global/DO_Edgar/Defense/Evade/Evade_Duck","act/anim/DO_Edgar.act")
  1613.                        
  1614.                         PedSetFlag(gPlayer,87,false)
  1615.                         PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  1616.                     end
  1617.                 end
  1618.             end
  1619.         end
  1620.         if gData.Style == "GS_Male_A" then
  1621.             if PedMePlaying(gPlayer,"DEFAULT_KEY") then
  1622.                
  1623.                 if PedIsModel(gPlayer,56) or PedIsModel(gPlayer,76) or PedIsModel(gPlayer,77) or PedIsModel(gPlayer,84) or PedIsModel(gPlayer,86) or PedIsModel(gPlayer,89) or PedIsModel(gPlayer,100) or PedIsModel(gPlayer,101) or PedIsModel(gPlayer,103) or PedIsModel(gPlayer,104) or PedIsModel(gPlayer,105) or PedIsModel(gPlayer,108) or PedIsModel(gPlayer,113) or PedIsModel(gPlayer,114) or PedIsModel(gPlayer,115) or PedIsModel(gPlayer,116) or PedIsModel(gPlayer,123) or PedIsModel(gPlayer,124) or PedIsModel(gPlayer,127) or PedIsModel(gPlayer,128) or PedIsModel(gPlayer,144) or PedIsModel(gPlayer,148) or PedIsModel(gPlayer,149) or PedIsModel(gPlayer,152) or PedIsModel(gPlayer,156) or PedIsModel(gPlayer,187) or PedIsModel(gPlayer,190) or PedIsModel(gPlayer,194) or PedIsModel(gPlayer,195) or PedIsModel(gPlayer,222) or PedIsModel(gPlayer,223) or PedIsModel(gPlayer,237) or PedIsModel(gPlayer,236) or PedIsModel(gPlayer,252) or PedIsModel(gPlayer,253) or PedIsModel(gPlayer,254) then
  1624.                     if IsButtonBeingPressed(9,0) and PedIsValid(Target) then
  1625.                         PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Front/Grapples/GrappleAttempt","Act/Globals.act")
  1626.                        
  1627.                         Wait(200)
  1628.                         if PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  1629.                             PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Front/Grapples/GrappleMoves/Adult_Takedown","Act/Globals.act")
  1630.                         end
  1631.                     end
  1632.                 end
  1633.             end
  1634.         elseif gData.Style == "GS_Female_A" then
  1635.             if PedMePlaying(gPlayer,"DEFAULT_KEY") and PedIsValid(Target) then
  1636.                 if PedIsModel(gPlayer,78) or PedIsModel(gPlayer,79) or PedIsModel(gPlayer,80) or PedIsModel(gPlayer,81) or PedIsModel(gPlayer,120) or PedIsModel(gPlayer,143) or PedIsModel(gPlayer,191) or PedIsModel(gPlayer,192) or PedIsModel(gPlayer,193) then
  1637.                     if IsButtonBeingPressed(9,0) then
  1638.                         PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Front/Grapples/GrappleMoves/EarGrab","act/anim/Authority.act")
  1639.                     end
  1640.                 end
  1641.             end
  1642.         elseif gData.Style == "Authority" then
  1643.             if PedMePlaying(gPlayer,"DEFAULT_KEY") and PedIsValid(Target) then
  1644.                 if IsButtonBeingPressed(9,0) then
  1645.                     PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Front/Grapples/GrappleMoves/Tonfa_Impale/TonfaImpale","Globals/Authority.act")
  1646.                 end
  1647.             end
  1648.         elseif gData.Style == "B_Striker_A" then
  1649.             if PedIsPlaying(gPlayer,"/Globa/Actions/Grapples/Mount/MountIdle/GIVE",true) then
  1650.                 if IsButtonBeingPressed(6,0) then
  1651.                     PedSetAITree(gPlayer,"/Global/DarbyAI","Act/AI_DARBY_2_B.act")
  1652.                    
  1653.                     PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Front/Grapples/Mount/MountOpps/Bully/Spit","act/anim/B_Striker_A.act")
  1654.                    
  1655.                     PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  1656.                 end
  1657.             end
  1658.         end
  1659.         Wait(0)
  1660.     end
  1661. end
  1662. UM_FightingMode = function()
  1663.     local Styles,HoldingTime = {
  1664.         "Player","P_Striker_A","P_Striker_B","P_Grappler_A","G_Striker_A","G_Melee_A",
  1665.         "G_Grappler_A","J_Grappler_A","J_Striker_A","J_Melee_A","B_Striker_A","DO_Striker_A",
  1666.         "DO_Grappler_A","James_BETA","Nemesis"
  1667.     },0
  1668.     while true do
  1669.         -- Fighting Mode:
  1670.         for Num,FightingStyle in ipairs(Styles) do
  1671.             F_InBoxingOrGym,IsIdle = function()
  1672.                 local Missions = {
  1673.                     "3_R09_P3","2_R11_Chad","2_R11_Bryce","2_R11_Justin","2_R11_Parker",
  1674.                     "2_R11_Random","3_R09_J3","C_Wrestling_1","C_Wrestling_2","C_Wrestling_3",
  1675.                     "C_Wrestling_4","C_Wrestling_5","C_Dodgeball_1","C_Dodgeball_2","C_Dodgeball_3",
  1676.                     "C_Dodgeball_4","C_Dodgeball_5"
  1677.                 }
  1678.                 for MISSION_ID,MISSION in ipairs(Missions) do
  1679.                     if MissionActiveSpecific(MISSION) then
  1680.                         return true
  1681.                     end
  1682.                 end
  1683.                 return false
  1684.             end,function()
  1685.                 if PedMePlaying(gPlayer,"DEFAULT_KEY") or PedIsPlaying(gPlayer,"/Global/4_06/GateNerd/Picklock",true) then
  1686.                     return true
  1687.                 end
  1688.                 return false
  1689.             end
  1690.            
  1691.             if gData.Style == FightingStyle and IsIdle() and not F_InBoxingOrGym() then
  1692.                 if IsButtonBeingPressed(6,0) and not gData.Is_Busy and not gData.NoClip.Active and not PedIsInAnyVehicle(gPlayer) then
  1693.                     repeat
  1694.                         if gData.SwitchStyle + 1000 < GetTimer() then
  1695.                             HoldingTime = HoldingTime + 1
  1696.                             gData.SwitchStyle = GetTimer()
  1697.                         elseif IsButtonBeingReleased(6,0) and HoldingTime <= 4 then
  1698.                             break
  1699.                         end
  1700.                         Wait(0)
  1701.                     until HoldingTime == 4
  1702.                     if HoldingTime == 4 then
  1703.                         while not IsIdle() do
  1704.                             Wait(0)
  1705.                         end
  1706.                        
  1707.                         gData.Is_Fighting = not gData.Is_Fighting
  1708.                        
  1709.                         if gData.Is_Fighting then
  1710.                             PedSetWeaponNow(gPlayer,-1)
  1711.                            
  1712.                             if gData.Style == "Player" then
  1713.                                 gData.Func.SetStyle(gPlayer,"Nemesis",false)
  1714.                                 MonitorStyle,gData.Style = CreateThread("F_JamesBETA"),"James_BETA"
  1715.                             else
  1716.                                 gData.Func.SetStyle(gPlayer,gData.Style) end
  1717.                            
  1718.                             PlayerWeaponHudLock(true)
  1719.                             TextPrintString("Fighting Mode",1,1)
  1720.                         else
  1721.                             gData.Func.SetStyle(gPlayer,"Player")
  1722.                            
  1723.                             PlayerWeaponHudLock(false)
  1724.                             TextPrintString("Normal Mode",1,1)
  1725.                         end
  1726.                        
  1727.                         while not IsButtonBeingReleased(6,0) do
  1728.                             Wait(0)
  1729.                         end
  1730.                     end
  1731.                    
  1732.                     gData.SwitchStyle,HoldingTime = GetTimer(),0
  1733.                 end
  1734.             elseif F_InBoxingOrGym() and gData.Is_Fighting then
  1735.                 gData.Func.SetStyle(gPlayer,"Player")
  1736.                 gData.Is_Fighting = false
  1737.             end
  1738.         end
  1739.         Wait(0)
  1740.     end
  1741. end
  1742. F_JamesBETA = function()
  1743.     local Nona
  1744.    
  1745.     while true do
  1746.         if gData.Style == "James_BETA" then
  1747.            
  1748.             CurrentCombo,Reset = gData.James_BETA.Combo,false
  1749.             repeat
  1750.                 if gData.James_BETA.Timer + 300 < GetTimer() then
  1751.                     Reset = true
  1752.                 end
  1753.                 Wait(0)
  1754.             until gData.James_BETA.Combo ~= CurrentCombo or Reset
  1755.             if Reset then
  1756.                 gData.James_BETA.Combo = 1
  1757.             end
  1758.             gData.James_BETA.Timer = GetTimer()
  1759.            
  1760.         else
  1761.             TerminateThread("F_JamesBETA")
  1762.             break
  1763.         end
  1764.        
  1765.         Wait(0)
  1766.     end
  1767. end
  1768.  
  1769. PedGetActionTree = function(ped)
  1770.     Styles = {
  1771.         "Player",
  1772.         "AN_DOG",
  1773.         "Authority",
  1774.         "B_Striker_A",
  1775.         "1_03_Davis",
  1776.         "BOSS_Darby",
  1777.         "BOSS_Russell",
  1778.         "Crazy_Basic",
  1779.         "CV_Drunk",
  1780.         "CV_Female_A",
  1781.         "CV_Male_A",
  1782.         "CV_OLD",
  1783.         "DO_Edgar",
  1784.         "DO_Grappler_A",
  1785.         "DO_Melee_A",
  1786.         "DO_Striker_A",
  1787.         "G_Grappler_A",
  1788.         "G_Johnny",
  1789.         "G_Melee_A",
  1790.         "G_Ranged_A",
  1791.         "G_Striker_A",
  1792.         "3_05_Norton",
  1793.         "GS_Fat_A",
  1794.         "GS_Female_A",
  1795.         "GS_Male_A",
  1796.         "Hobo_Blocker",
  1797.         "J_Damon",
  1798.         "J_Grappler_A",
  1799.         "J_Mascot",
  1800.         "J_Melee_A",
  1801.         "J_Striker_A",
  1802.         "J_Ted",
  1803.         "LE_Orderly_A",
  1804.         "N_Earnest",
  1805.         "N_Ranged_A",
  1806.         "N_Striker_A",
  1807.         "N_Striker_B",
  1808.         "Nemesis",
  1809.         "P_Bif",
  1810.         "P_Grappler_A",
  1811.         "P_Striker_A",
  1812.         "P_Striker_B",
  1813.         "PunchBagBS",
  1814.         "Russell_102",
  1815.         "TE_Female_A",
  1816.         "TE_Secretary",
  1817.         "TO_Siamese",
  1818.         "WrestlingACT",
  1819.         "BoxingPlayer",
  1820.     }
  1821.     for i,v in ipairs(Styles) do
  1822.         if PedIsPlaying(ped,"/Global/"..v,true) then
  1823.             return v
  1824.         end
  1825.     end
  1826.     return Styles[math.random(1,table.getn(Styles))]
  1827. end
  1828. Setup_Mod = function()
  1829.     function SETUP_Clothes()
  1830.         All_Clothes = {
  1831.             {model = "R_Jacket1"                ,style = 1},
  1832.             {model = "R_Jacket2"                ,style = 1},
  1833.             {model = "R_Jacket5"            ,style = 1},
  1834.             {model = "R_Sweater1"               ,style = 1},
  1835.             {model = "R_Sweater2"           ,style = 1},
  1836.             {model = "R_Sweater3"               ,style = 1},
  1837.             {model = "R_Sweater4"           ,style = 1},
  1838.             {model = "R_Sweater5"               ,style = 1},
  1839.             {model = "R_SSleeves1"          ,style = 1},
  1840.             {model = "R_SSleeves2"              ,style = 1},
  1841.             {model = "R_SSleeves4"              ,style = 1},
  1842.             {model = "R_SSleeves5"          ,style = 1},
  1843.             {model = "R_SSleeves6"              ,style = 1},
  1844.             {model = "R_LSleeves1"          ,style = 1},
  1845.             {model = "R_LSleeves2"              ,style = 1},
  1846.             {model = "R_LSleeves4"              ,style = 1},
  1847.             {model = "R_LSleeves5"          ,style = 1},
  1848.             {model = "R_Watch1"             ,style = 2},
  1849.             {model = "R_Watch2"             ,style = 2},
  1850.             {model = "R_Watch3"             ,style = 2},
  1851.             {model = "R_Watch4"         ,style = 2},
  1852.             {model = "R_Wristband1"             ,style = 3},
  1853.             {model = "R_Wristband2"             ,style = 3},
  1854.             {model = "R_Wristband3"             ,style = 3},
  1855.             {model = "R_Wristband4"         ,style = 3},
  1856.             {model = "R_Pants1"         ,style = 4},
  1857.             {model = "R_Pants2"         ,style = 4},
  1858.             {model = "R_Pants3"             ,style = 4},
  1859.             {model = "R_Pants4"             ,style = 4},
  1860.             {model = "R_Pants5"             ,style = 4},
  1861.             {model = "R_Shorts1"            ,style = 4},
  1862.             {model = "R_Shorts2"            ,style = 4},
  1863.             {model = "R_Shorts3"                ,style = 4},
  1864.             {model = "R_Shorts4"                ,style = 4},
  1865.             {model = "R_Shorts5"                ,style = 4},
  1866.             {model = "R_Sneakers1"              ,style = 5},
  1867.             {model = "R_Sneakers2"          ,style = 5},
  1868.             {model = "R_Sneakers3"              ,style = 5},
  1869.             {model = "R_Sneakers4"              ,style = 5},
  1870.             {model = "R_Sneakers5"              ,style = 5},
  1871.             {model = "R_Boots2"         ,style = 5},
  1872.             {model = "R_Boots3"             ,style = 5},
  1873.             {model = "R_Hat1"               ,style = 0},
  1874.             {model = "R_Hat2"               ,style = 0},
  1875.             {model = "R_Hat3"               ,style = 0},
  1876.             {model = "R_Hat4"           ,style = 0},
  1877.             {model = "R_Hat5"           ,style = 0},
  1878.             {model = "R_Hat6"               ,style = 0},
  1879.             {model = "S_Jacket3"                ,style = 1},
  1880.             {model = "S_Jacket4"            ,style = 1},
  1881.             {model = "S_Sweater1"               ,style = 1},
  1882.             {model = "S_Sweater2"           ,style = 1},
  1883.             {model = "S_Sweater5"               ,style = 1},
  1884.             {model = "S_LSleeves1"          ,style = 1},
  1885.             {model = "S_LSleeves2"          ,style = 1},
  1886.             {model = "S_LSleeves3"              ,style = 1},
  1887.             {model = "S_LSleeves4"          ,style = 1},
  1888.             {model = "S_Wristband1"             ,style = 2},
  1889.             {model = "S_Wristband2"             ,style = 3},
  1890.             {model = "S_Wristband3"             ,style = 3},
  1891.             {model = "S_Wristband4"         ,style = 2},
  1892.             {model = "S_Wristband5"             ,style = 3},
  1893.             {model = "S_Wristband6"         ,style = 2},
  1894.             {model = "S_Pants1"         ,style = 4},
  1895.             {model = "S_Pants3"         ,style = 4},
  1896.             {model = "S_Shorts1"            ,style = 4},
  1897.             {model = "S_Shorts4"            ,style = 4},
  1898.             {model = "S_Shorts5"            ,style = 4},
  1899.             {model = "S_Shorts6"            ,style = 4},
  1900.             {model = "S_Sneakers1"              ,style = 5},
  1901.             {model = "S_Sneakers2"          ,style = 5},
  1902.             {model = "S_BHat1"              ,style = 0},
  1903.             {model = "S_BHat2"              ,style = 0},
  1904.             {model = "S_BHat3"              ,style = 0},
  1905.             {model = "S_Sunvisor1"              ,style = 0},
  1906.             {model = "S_Sunvisor2"              ,style = 0},
  1907.             {model = "S_Sunvisor3"              ,style = 0},
  1908.             {model = "P_Army1"              ,style = 0},
  1909.             {model = "P_Army2"              ,style = 0},
  1910.             {model = "P_Army3"          ,style = 0},
  1911.             {model = "P_Jacket1"                ,style = 1},
  1912.             {model = "P_Jacket2"                ,style = 1},
  1913.             {model = "P_Jacket3"            ,style = 1},
  1914.             {model = "P_Jacket4"                ,style = 1},
  1915.             {model = "P_Jacket5"            ,style = 1},
  1916.             {model = "P_Jacket6"                ,style = 1},
  1917.             {model = "P_Sweater1"               ,style = 1},
  1918.             {model = "P_Sweater2"               ,style = 1},
  1919.             {model = "P_Sweater3"           ,style = 1},
  1920.             {model = "P_Sweater4"               ,style = 1},
  1921.             {model = "P_Sweater5"           ,style = 1},
  1922.             {model = "P_Sweater6"               ,style = 1},
  1923.             {model = "P_Sweater7"           ,style = 1},
  1924.             {model = "P_Sweater8"               ,style = 1},
  1925.             {model = "P_SSleeves1"              ,style = 1},
  1926.             {model = "P_SSleeves2"              ,style = 1},
  1927.             {model = "P_SSleeves3"          ,style = 1},
  1928.             {model = "P_SSleeves4"              ,style = 1},
  1929.             {model = "P_SSleeves5"          ,style = 1},
  1930.             {model = "P_SSleeves6"              ,style = 1},
  1931.             {model = "P_SSleeves7"          ,style = 1},
  1932.             {model = "P_SSleeves8"              ,style = 1},
  1933.             {model = "P_SSleeves9"          ,style = 1},
  1934.             {model = "P_SSleeves10"         ,style = 1},
  1935.             {model = "P_SSleeves11"             ,style = 1},
  1936.             {model = "P_SSleeves12"             ,style = 1},
  1937.             {model = "P_SSleeves13"             ,style = 1},
  1938.             {model = "P_SSleeves14"             ,style = 1},
  1939.             --{model = "P_SSleeves15"               ,style = 1},
  1940.             {model = "P_LSleeves1"              ,style = 1},
  1941.             {model = "P_LSleeves2"              ,style = 1},
  1942.             {model = "P_LSleeves3"          ,style = 1},
  1943.             {model = "P_LSleeves4"              ,style = 1},
  1944.             {model = "P_LSleeves5"          ,style = 1},
  1945.             {model = "P_LSleeves6"              ,style = 1},
  1946.             {model = "P_LSleeves7"          ,style = 1},
  1947.             {model = "P_LSleeves8"              ,style = 1},
  1948.             {model = "P_LSleeves9"          ,style = 1},
  1949.             {model = "P_LSleeves10"         ,style = 1},
  1950.             {model = "P_Watch1"             ,style = 2},
  1951.             {model = "P_Wristband1"             ,style = 3},
  1952.             {model = "P_Wristband2"             ,style = 3},
  1953.             {model = "P_Wristband3"             ,style = 3},
  1954.             {model = "P_Wristband4"         ,style = 3},
  1955.             {model = "P_Wristband5"             ,style = 3},
  1956.             {model = "P_Wristband6"         ,style = 3},
  1957.             {model = "P_Wristband7"             ,style = 3},
  1958.             {model = "P_Wristband8"         ,style = 3},
  1959.             {model = "P_Pants1"         ,style = 4},
  1960.             {model = "P_Pants2"         ,style = 4},
  1961.             {model = "P_Pants3"             ,style = 4},
  1962.             {model = "P_Pants4"             ,style = 4},
  1963.             {model = "P_Pants5"             ,style = 4},
  1964.             {model = "P_Pants6"             ,style = 4},
  1965.             {model = "P_Pants7"         ,style = 4},
  1966.             {model = "P_Sneakers1"              ,style = 5},
  1967.             {model = "P_Sneakers2"              ,style = 5},
  1968.             {model = "P_Sneakers3"          ,style = 5},
  1969.             {model = "P_Sneakers4"              ,style = 5},
  1970.             {model = "P_Sneakers5"          ,style = 5},
  1971.             {model = "P_Sneakers6"              ,style = 5},
  1972.             {model = "P_Sneakers7"          ,style = 5},
  1973.             {model = "P_Sneakers8"              ,style = 5},
  1974.             {model = "P_Sneakers9"          ,style = 5},
  1975.             {model = "P_Sneakers10"         ,style = 5},
  1976.             {model = "P_Sneakers11"             ,style = 5},
  1977.             {model = "P_Sneakers12"             ,style = 5},
  1978.             {model = "P_Sneakers13"             ,style = 5},
  1979.             {model = "P_Sneakers14"             ,style = 5},
  1980.             {model = "P_Sneakers15"         ,style = 5},
  1981.             {model = "P_Sneakers16"             ,style = 5},
  1982.             {model = "P_Sneakers17"             ,style = 5},
  1983.             {model = "P_Sneakers18"             ,style = 5},
  1984.             {model = "P_Sneakers19"         ,style = 5},
  1985.             {model = "P_Boots1"             ,style = 5},
  1986.             {model = "P_Boots2"             ,style = 5},
  1987.             {model = "P_Boots3"         ,style = 5},
  1988.             {model = "P_Boots4"             ,style = 5},
  1989.             {model = "P_BHat1"              ,style = 0},
  1990.             {model = "P_BHat2"              ,style = 0},
  1991.             {model = "P_BHat3"              ,style = 0},
  1992.             {model = "P_BHat4"          ,style = 0},
  1993.             {model = "P_BHat5"          ,style = 0},
  1994.             {model = "P_BHat6"              ,style = 0},
  1995.             {model = "P_Bandana1"           ,style = 0},
  1996.             {model = "P_Bandana2"           ,style = 0},
  1997.             {model = "P_Bandana3"               ,style = 0},
  1998.             {model = "B_Jacket1"                ,style = 1},
  1999.             {model = "B_Jacket2"                ,style = 1},
  2000.             {model = "B_Jacket3"            ,style = 1},
  2001.             {model = "B_Jacket6"                ,style = 1},
  2002.             {model = "B_Sweater2"               ,style = 1},
  2003.             {model = "B_Sweater3"               ,style = 1},
  2004.             {model = "B_Sweater4"           ,style = 1},
  2005.             {model = "B_SSleeves1"              ,style = 1},
  2006.             {model = "B_SSleeves2"              ,style = 1},
  2007.             {model = "B_SSleeves3"          ,style = 1},
  2008.             {model = "B_LSleeves2"              ,style = 1},
  2009.             {model = "B_LSleeves3"              ,style = 1},
  2010.             {model = "B_LSleeves4"          ,style = 1},
  2011.             {model = "B_Jersey1"                ,style = 1},
  2012.             {model = "B_Jersey3"                ,style = 1},
  2013.             {model = "B_Jersey4"            ,style = 1},
  2014.             {model = "B_Jersey5"                ,style = 1},
  2015.             {model = "B_Jersey6"            ,style = 1},
  2016.             {model = "B_Jersey7"                ,style = 1},
  2017.             {model = "B_Jersey8"            ,style = 1},
  2018.             {model = "B_Jersey9"                ,style = 1},
  2019.             {model = "B_Jersey10"           ,style = 1},
  2020.             --{model = "B_BigWatch"             ,style = 2},
  2021.             {model = "B_Wristband1"             ,style = 3},
  2022.             {model = "B_Wristband2"             ,style = 3},
  2023.             {model = "B_Wristband3"             ,style = 3},
  2024.             {model = "B_Wristband4"         ,style = 3},
  2025.             {model = "B_Wristband5"             ,style = 3},
  2026.             {model = "B_Pants1"             ,style = 4},
  2027.             {model = "B_Pants2"             ,style = 4},
  2028.             {model = "B_Pants3"         ,style = 4},
  2029.             {model = "B_Pants4"             ,style = 4},
  2030.             {model = "B_Pants6"             ,style = 4},
  2031.             {model = "B_Pants7"             ,style = 4},
  2032.             {model = "B_Pants8"         ,style = 4},
  2033.             {model = "B_Shorts1"            ,style = 4},
  2034.             {model = "B_Shorts2"            ,style = 4},
  2035.             {model = "B_Shorts3"                ,style = 4},
  2036.             {model = "B_Shorts4"            ,style = 4},
  2037.             {model = "B_Shorts5"            ,style = 4},
  2038.             {model = "B_Shorts6"            ,style = 4},
  2039.             {model = "B_Shorts7"            ,style = 4},
  2040.             {model = "B_Sneakers1"              ,style = 5},
  2041.             {model = "B_Sneakers2"              ,style = 5},
  2042.             {model = "B_Sneakers3"          ,style = 5},
  2043.             {model = "B_Sneakers4"              ,style = 5},
  2044.             {model = "B_Sneakers5"          ,style = 5},
  2045.             {model = "B_Sneakers6"              ,style = 5},
  2046.             {model = "B_Sneakers8"              ,style = 5},
  2047.             {model = "B_Sneakers9"          ,style = 5},
  2048.             {model = "B_Sneakers10"         ,style = 5},
  2049.             {model = "B_Sneakers11"             ,style = 5},
  2050.             {model = "B_Sneakers12"             ,style = 5},
  2051.             {model = "B_Sneakers13"             ,style = 5},
  2052.             {model = "B_Boots1"             ,style = 5},
  2053.             {model = "B_Boots2"             ,style = 5},
  2054.             {model = "B_Boots3"         ,style = 5},
  2055.             {model = "B_Boots4"             ,style = 5},
  2056.             {model = "B_Boots5"         ,style = 5},
  2057.             {model = "B_BHat1"              ,style = 0},
  2058.             {model = "B_BHat2"              ,style = 0},
  2059.             {model = "B_BHat3"              ,style = 0},
  2060.             {model = "B_BHat4"          ,style = 0},
  2061.             {model = "B_BHat5"          ,style = 0},
  2062.             {model = "B_BHat6"              ,style = 0},
  2063.             {model = "B_Bucket1"                ,style = 0},
  2064.             {model = "B_Bucket2"            ,style = 0},
  2065.             {model = "B_Various1"               ,style = 0},
  2066.             {model = "B_Various2"           ,style = 0},
  2067.             {model = "B_Various3"               ,style = 0},
  2068.             {model = "B_Various4"               ,style = 0},
  2069.             {model = "B_Various5"               ,style = 0},
  2070.             {model = "B_Hunter1"                ,style = 0},
  2071.             {model = "B_Hunter2"            ,style = 0},
  2072.             {model = "B_Hunter3"            ,style = 0},
  2073.             {model = "SP_Alien_H"               ,style = 0},
  2074.             {model = "SP_Alien_T"               ,style = 1},
  2075.             {model = "SP_Alien_L"           ,style = 4},
  2076.             {model = "SP_Boxing_ft"         ,style = 5},
  2077.             {model = "SP_Boxing_G_L"                ,style = 2},
  2078.             {model = "SP_Boxing_G_R"                ,style = 3},
  2079.             {model = "SP_Boxing_L"              ,style = 4},
  2080.             {model = "SP_Boxing_T"              ,style = 1},
  2081.             {model = "SP_BikeHelmet"            ,style = 0},
  2082.             {model = "SP_BikeJersey"            ,style = 1},
  2083.             {model = "SP_BikeShorts"            ,style = 4},
  2084.             {model = "SP_BMXhelmet"             ,style = 0},
  2085.             {model = "SP_Antlers"               ,style = 0},
  2086.             {model = "SP_Colum_H"               ,style = 0},
  2087.             {model = "SP_Colum_T"               ,style = 1},
  2088.             {model = "SP_Colum_L"               ,style = 4},
  2089.             {model = "SP_Colum_FT"              ,style = 5},
  2090.             {model = "SP_Elf_H"             ,style = 0},
  2091.             {model = "SP_Elf_T"             ,style = 1},
  2092.             {model = "SP_Elf_L"         ,style = 4},
  2093.             {model = "SP_Elf_FT"                ,style = 5},
  2094.             {model = "SP_Fries_H"           ,style = 0},
  2095.             {model = "SP_Fries_T"               ,style = 1},
  2096.             {model = "SP_Fries_L"               ,style = 4},
  2097.             {model = "SP_Gnome_H"               ,style = 0},
  2098.             {model = "SP_Gnome_T"               ,style = 1},
  2099.             {model = "SP_Gnome_L"               ,style = 4},
  2100.             {model = "SP_Gnome_ft"          ,style = 5},
  2101.             {model = "SP_Goldsuit_H"                ,style = 0},
  2102.             {model = "SP_Goldsuit_T"                ,style = 1},
  2103.             {model = "SP_Goldsuit_L"                ,style = 4},
  2104.             {model = "SP_Goldsuit_ft"               ,style = 5},
  2105.             {model = "SP_MBand_H"           ,style = 0},
  2106.             {model = "SP_MBand_T"               ,style = 1},
  2107.             {model = "SP_MBand_L"               ,style = 4},
  2108.             {model = "SP_MBand_FT"              ,style = 5},
  2109.             {model = "SP_Mascot_H"              ,style = 0},
  2110.             {model = "SP_Mascot_B"              ,style = 5},
  2111.             {model = "SP_Nascar_H"          ,style = 0},
  2112.             {model = "SP_Nascar_T"              ,style = 1},
  2113.             {model = "SP_Nascar_L"              ,style = 4},
  2114.             {model = "SP_Nascar_FT"             ,style = 5},
  2115.             {model = "SP_Nerd_H"            ,style = 0},
  2116.             {model = "SP_Nerd_T"                ,style = 1},
  2117.             {model = "SP_Nerd_L"            ,style = 4},
  2118.             {model = "SP_Nerd_FT"               ,style = 5},
  2119.             {model = "SP_NerdWatch"         ,style = 3},
  2120.             {model = "SP_Ninja_H"               ,style = 0},
  2121.             {model = "SP_Ninja_T"               ,style = 1},
  2122.             {model = "SP_Ninja_L"               ,style = 4},
  2123.             {model = "SP_Ninja_FT"          ,style = 5},
  2124.             {model = "SP_NinjaW_H"              ,style = 0},
  2125.             {model = "SP_NinjaW_T"              ,style = 1},
  2126.             {model = "SP_NinjaW_L"              ,style = 4},
  2127.             {model = "SP_NinjaW_FT"         ,style = 5},
  2128.             {model = "SP_NinjaR_H"              ,style = 0},
  2129.             {model = "SP_NinjaR_T"              ,style = 1},
  2130.             {model = "SP_NinjaR_L"              ,style = 4},
  2131.             {model = "SP_NinjaR_FT"         ,style = 5},
  2132.             {model = "SP_Nutcrack_H"            ,style = 0},
  2133.             {model = "SP_Nutcrack_T"            ,style = 1},
  2134.             {model = "SP_Nutcrack_L"            ,style = 4},
  2135.             {model = "SP_Nutcrack_FT"       ,style = 5},
  2136.             {model = "SP_Orderly_T"         ,style = 1},
  2137.             {model = "SP_Orderly_P"         ,style = 4},
  2138.             {model = "SP_Orderly_B"         ,style = 5},
  2139.             {model = "SP_PJ_T"          ,style = 1},
  2140.             {model = "SP_PJ_L"          ,style = 4},
  2141.             {model = "SP_Prison_T"              ,style = 1},
  2142.             {model = "SP_Prison_L"      ,style = 4},
  2143.             {model = "SP_80Rocker_H"                ,style = 0},
  2144.             {model = "SP_80Rocker_T"                ,style = 1},
  2145.             {model = "SP_80Rocker_L"            ,style = 4},
  2146.             {model = "SP_80Rocker_FT"           ,style = 5},
  2147.             {model = "SP_Ween_H"            ,style = 0},
  2148.             {model = "SP_Ween_T"        ,style = 1},
  2149.             {model = "SP_Ween_L"        ,style = 4},
  2150.             {model = "SP_Wrestling_H"           ,style = 0},
  2151.             {model = "SP_Wrestling_T"       ,style = 1},
  2152.             {model = "SP_Wrestling_L"           ,style = 4},
  2153.             {model = "SP_Wrestling_ft"      ,style = 5},
  2154.             {model = "SP_Panda_H"           ,style = 0},
  2155.             {model = "SP_Panda_B"           ,style = 5},
  2156.             {model = "SP_BikeHelmet"                ,style = 0},
  2157.             {model = "SP_BandShirt"             ,style = 1},
  2158.             {model = "SP_Cowboyhat"         ,style = 0},
  2159.             {model = "SP_XmsSweater"                ,style = 1},
  2160.             {model = "SP_PieShirt"              ,style = 1},
  2161.             {model = "SP_PigMask"               ,style = 0},
  2162.             {model = "SP_PirateHat"             ,style = 0},
  2163.             {model = "SP_Duncehat"              ,style = 0},
  2164.             {model = "SP_EdnaMask"              ,style = 0},
  2165.             {model = "SP_EiffelHat"         ,style = 0},
  2166.             {model = "SP_Einstein"          ,style = 0},
  2167.             {model = "SP_Firehat"               ,style = 0},
  2168.             {model = "SP_GK_Helmet"             ,style = 0},
  2169.             {model = "SP_Socks"             ,style = 5},
  2170.             {model = "SP_Swimsuit"          ,style = 4},
  2171.             {model = "SP_Zorromask"             ,style = 0},
  2172.             {model = "SP_PithHelmet"            ,style = 0},
  2173.             {model = "SP_Pophat"            ,style = 0},
  2174.             {model = "SP_Pumpkin_head"              ,style = 0},
  2175.             {model = "SP_VHelmet"               ,style = 0},
  2176.             {model = "SP_Werewolf"          ,style = 0},
  2177.             {model = "SP_GymDisguise"           ,style = 0},
  2178.             {model = "SP_Basshat"           ,style = 0},
  2179.             {model = "SP_Hazmat"            ,style = 0},
  2180.             {model = "SP_MortarBhat"            ,style = 0},
  2181.             {model = "SP_HipShirt"          ,style = 1},
  2182.             {model = "SP_MathShirt"         ,style = 1},
  2183.             {model = "SP_MuscleShirt"           ,style = 1},
  2184.             {model = "SP_Briefs"            ,style = 4},
  2185.             {model = "SP_MusicPJ_L"         ,style = 4},
  2186.             {model = "SP_MusicPJ_T"         ,style = 1},
  2187.             {model = "SP_MusicShirt"            ,style = 1},
  2188.             {model = "SP_Shorts"            ,style = 4},
  2189.             {model = "C_AngelHalo"              ,style = 0},
  2190.             {model = "C_CanadaHat"          ,style = 0},
  2191.             {model = "C_ClownPants"             ,style = 4},
  2192.             {model = "C_ClownShoes"             ,style = 5},
  2193.             {model = "C_ClownWig"               ,style = 0},
  2194.             {model = "C_DevilHorns"             ,style = 0},
  2195.             {model = "C_PinkWatch"              ,style = 2},
  2196.             {model = "C_StpdShrt"           ,style = 1},
  2197.             {model = "C_StrangeHat"         ,style = 0}
  2198.         }
  2199.     end
  2200.     function SETUP_Outfits()
  2201.         All_Outfit = {
  2202.             {"Underwear"                    ,"Underwear"},
  2203.             {"Starting"                 ,"Starting"},
  2204.             {"Uniform"                  ,"School Uniform"},
  2205.             {"Boxing"                   ,"Boxing (Complete)"},
  2206.             {"Boxing NG"                    ,"Boxing"},
  2207.             {"Wrestling"                ,"Wrestling Uniform"},
  2208.             {"Mascot"                   ,"Mascot"},
  2209.             {"MascotNoHead"                 ,"Mascot (No Head)"},
  2210.             {"Orderly"                  ,"Orderly Uniform"},
  2211.             {"Halloween"                    ,"Halloween"},
  2212.             {"PJ"                   ,"Pajamas"},
  2213.             {"Prison"                   ,"Prisoner"},
  2214.             {"Grotto Master"                ,"Grotto Master"},
  2215.             {"Gnome"                    ,"Gnome"},
  2216.             {"Fast Food"                    ,"Fast Food uniform"},
  2217.             {"Gold Suit"                    ,"Gold Suit"},
  2218.             {"BMX Champion"                 ,"BMX"},
  2219.             {"Gym Strip"                ,"Gym strip"},
  2220.             {"Ninja_BLK"                    ,"Black Ninja"},
  2221.             {"Ninja_WHT"                    ,"Green Ninja"},
  2222.             {"Ninja_RED"                    ,"Red Ninja"},
  2223.             {"Columbus"                 ,"Columbus"},
  2224.             {"Nutcracker"                   ,"Nutrackin"},
  2225.             {"Elf"                              ,"Elf"},
  2226.             {"Marching Band"                ,"Marching Band"},
  2227.             {"Nascar"                   ,"Nascar"},
  2228.             {"80 Rocker"                    ,"Rocker"},
  2229.             {"Panda"                    ,"Panda"},
  2230.             {"Alien"                    ,"Alien"},
  2231.             {"NerdJimmy"                ,"Nerd"}
  2232.         }
  2233.     end
  2234.     function SETUP_Model()
  2235.         Models = {
  2236.             {model = "player"                   ,name = "Jimmy"             ,style = "Player"},
  2237.             {model = "DOgirl_Zoe_EG"            ,name = "Zoe"               ,style = "GS_Female_A"},
  2238.             {model = "NDGirl_Beatrice"          ,name = "Beatrice"          ,style = "GS_Female_A"},
  2239.             {model = "NDH1a_Algernon"           ,name = "Algernon"          ,style = "N_Striker_B"},
  2240.             {model = "NDH1_Fatty"               ,name = "Fatty"             ,style = "N_Striker_A"},
  2241.             {model = "ND2nd_Melvin"             ,name = "Melvin"            ,style = "N_Striker_A"},
  2242.             {model = "NDH2_Thad"                ,name = "Thad"              ,style = "N_Ranged_A"},
  2243.             {model = "NDH3_Bucky"               ,name = "Bucky"             ,style = "N_Ranged_A"},
  2244.             {model = "NDH2a_Cornelius"          ,name = "Cornelius"         ,style = "N_Ranged_A"},
  2245.             {model = "NDLead_Earnest"           ,name = "Earnest"           ,style = "N_Ranged_A"},
  2246.             {model = "NDH3a_Donald"             ,name = "Donald"            ,style = "N_Ranged_A"},
  2247.             {model = "JKH1_Damon"               ,name = "Damon"             ,style = "J_Striker_A"},
  2248.             {model = "JKH1a_Kirby"              ,name = "Kirby"             ,style = "J_Striker_A"},
  2249.             {model = "JKGirl_Mandy"             ,name = "Mandy"             ,style = "GS_Female_A"},
  2250.             {model = "JKH2_Dan"                 ,name = "Dan"               ,style = "J_Striker_A"},
  2251.             {model = "JKH2a_Luis"               ,name = "Luis"              ,style = "J_Grappler_A"},
  2252.             {model = "JKH3_Casey"               ,name = "Casey"             ,style = "J_Melee_A"},
  2253.             {model = "JKH3a_Bo"                 ,name = "Bo"                ,style = "J_Melee_A"},
  2254.             {model = "JKlead_Ted"               ,name = "Ted"               ,style = "J_Striker_A"},
  2255.             {model = "JK2nd_Juri"               ,name = "Juri"              ,style = "J_Grappler_A"},
  2256.             {model = "GR2nd_Peanut"             ,name = "Peanut"            ,style = "G_Striker_A"},
  2257.             {model = "GRH2A_Hal"                ,name = "Hal"               ,style = "G_Grappler_A"},
  2258.             {model = "GRlead_Johnny"            ,name = "Johnny"            ,style = "G_Striker_A"},
  2259.             {model = "GRH1_Lefty"               ,name = "Lefty"             ,style = "G_Melee_A"},
  2260.             {model = "GRGirl_Lola"              ,name = "Lola"              ,style = "GS_Female_A"},
  2261.             {model = "GRH3_Lucky"               ,name = "Lucky"             ,style = "G_Striker_A"},
  2262.             {model = "GRH1a_Vance"              ,name = "Vance"             ,style = "G_Melee_A"},
  2263.             {model = "GRH3a_Ricky"              ,name = "Ricky"             ,style = "G_Striker_A"},
  2264.             {model = "GRH2_Norton"              ,name = "Norton"            ,style = "G_Grappler_A"},
  2265.             {model = "PRH1_Gord"                ,name = "Gord"              ,style = "P_Striker_A"},
  2266.             {model = "PRH1a_Tad"                ,name = "Tad"               ,style = "P_Striker_A"},
  2267.             {model = "PRH2a_Chad"               ,name = "Chad"              ,style = "P_Grappler_A"},
  2268.             {model = "PR2nd_Bif"                ,name = "Bif"               ,style = "P_Striker_A"},
  2269.             {model = "PRH3_Justin"              ,name = "Justin"            ,style = "P_Striker_B"},
  2270.             {model = "PRH2_Bryce"               ,name = "Bryce"             ,style = "P_Grappler_A"},
  2271.             {model = "PRH2_Bryce_OBOX"          ,name = "Bryce"             ,style = "P_Striker_A"},
  2272.             {model = "PRlead_Darby"             ,name = "Darby"             ,style = "P_Striker_A"},
  2273.             {model = "PRGirl_Pinky"             ,name = "Pinky"             ,style = "GS_Female_A"},
  2274.             {model = "GN_Asiangirl"             ,name = "Angie"             ,style = "GS_Female_A"},
  2275.             {model = "PRH3a_Parker"             ,name = "Parker"            ,style = "P_Striker_B"},
  2276.             {model = "DOH2_Jerry"               ,name = "Jerry"             ,style = "DO_Grappler_A"},
  2277.             {model = "DOH1a_Otto"               ,name = "Otto"              ,style = "DO_Striker_A"},
  2278.             {model = "DOH2a_Leon"               ,name = "Leon"              ,style = "DO_Striker_A"},
  2279.             {model = "DOH1_Duncan"              ,name = "Duncan"            ,style = "DO_Striker_A"},
  2280.             {model = "DOH3_Henry"               ,name = "Henry"             ,style = "DO_Grappler_A"},
  2281.             {model = "DOH3a_Gurney"             ,name = "Gurney"            ,style = "DO_Grappler_A"},
  2282.             {model = "DO2nd_Omar"               ,name = "Omar"              ,style = "DO_Striker_A"},
  2283.             {model = "DOGirl_Zoe"               ,name = "Zoe"               ,style = "GS_Female_A"},
  2284.             {model = "PF2nd_Max"                ,name = "Max"               ,style = "Authority"},
  2285.             {model = "PFH1_Seth"                ,name = "Seth"              ,style = "Authority"},
  2286.             {model = "PFH2_Edward"              ,name = "Edward"            ,style = "Authority"},
  2287.             {model = "PFlead_Karl"              ,name = "Karl"              ,style = "Authority"},
  2288.             {model = "TO_Orderly"               ,name = "Theo"              ,style = "LE_Orderly_A"},
  2289.             {model = "TE_HallMonitor"           ,name = "MissPeabody"       ,style = "TE_Female_A"},
  2290.             {model = "TE_GymTeacher"            ,name = "MrBurton"          ,style = "Authority"},
  2291.             {model = "TE_Janitor"               ,name = "MrLuntz"           ,style = "GS_Male_A"},
  2292.             {model = "TE_English"               ,name = "MrGalloway"        ,style = "Authority"},
  2293.             {model = "TE_Cafeteria"             ,name = "Edna"              ,style = "Authority"},
  2294.             {model = "TE_Secretary"             ,name = "MissWinston"       ,style = "TE_Female_A"},
  2295.             {model = "TE_Nurse"                 ,name = "MrsMcRae"          ,style = "TE_Female_A"},
  2296.             {model = "TE_MathTeacher"           ,name = "MrHuntingdon"      ,style = "Authority"},
  2297.             {model = "TE_Librarian"             ,name = "MrsCarvin"         ,style = "TE_Female_A"},
  2298.             {model = "TE_Art"                   ,name = "MsPhillips"        ,style = "TE_Female_A"},
  2299.             {model = "TE_Biology"               ,name = "MrSlawter"         ,style = "Authority"},
  2300.             {model = "TE_Principal"             ,name = "DrCrabblesnitch"   ,style = "Authority"},
  2301.             {model = "GN_Littleblkboy"          ,name = "Sheldon"           ,style = "GS_Male_A"},
  2302.             {model = "GN_SexyGirl"              ,name = "Christy"           ,style = "GS_Female_A"},
  2303.             {model = "GN_Littleblkgirl"         ,name = "Gloria"            ,style = "GS_Female_A"},
  2304.             {model = "GN_Hispanicboy"           ,name = "Pedro"             ,style = "GS_Male_A"},
  2305.             {model = "GN_Greekboy"              ,name = "Constantinos"      ,style = "GS_Male_A"},
  2306.             {model = "GN_Fatboy"                ,name = "Ray"               ,style = "GS_Fat_A"},
  2307.             {model = "GN_Boy01"                 ,name = "Ivan"              ,style = "GS_Male_A"},
  2308.             {model = "GN_Boy02"                 ,name = "Trevor"            ,style = "GS_Male_A"},
  2309.             {model = "GN_Fatgirl"               ,name = "Eunice"            ,style = "GS_Fat_A"},
  2310.             {model = "DOlead_Russell"           ,name = "Russell"           ,style = "B_Striker_A"},
  2311.             {model = "TO_Business1"             ,name = "DrBambillo"        ,style = "GS_Male_A"},
  2312.             {model = "TO_Business2"             ,name = "MrSullivan"        ,style = "GS_Male_A"},
  2313.             {model = "TO_BusinessW1"            ,name = "MsKopke"           ,style = "GS_Female_A"},
  2314.             {model = "TO_BusinessW2"            ,name = "MsRushinski"       ,style = "GS_Female_A"},
  2315.             {model = "TO_RichW1"                ,name = "MsIsaacs"          ,style = "GS_Female_A"},
  2316.             {model = "TO_RichW2"                ,name = "BethanyJones"      ,style = "GS_Female_A"},
  2317.             {model = "TO_Fireman"               ,name = "ORourke"           ,style = "GS_Male_A"},
  2318.             {model = "TO_Cop"                   ,name = "OfficerMonson"     ,style = "Authority"},
  2319.             {model = "TO_Comic"                 ,name = "ZackOwens"         ,style = "GS_Male_A"},
  2320.             {model = "GN_Bully03"               ,name = "Trent"             ,style = "B_Striker_A"},
  2321.             {model = "TO_Bikeowner"             ,name = "TobiasMason"       ,style = "GS_Male_A"},
  2322.             {model = "TO_Hobo"                  ,name = "MrGrant"           ,style = "GS_Male_A"},
  2323.             {model = "Player_Mascot"            ,name = "Mascot"            ,style = "B_Striker_A"},
  2324.             {model = "TO_GroceryOwner"          ,name = "MrOh"              ,style = "GS_Male_A"},
  2325.             {model = "GN_Sexygirl_UW"           ,name = "Christy"           ,style = "GS_Female_A"},
  2326.             {model = "DOLead_Edgar"             ,name = "Edgar"             ,style = "DO_Striker_A"},
  2327.             {model = "JK_LuisWrestle"           ,name = "Luis"              ,style = "J_Grappler_A"},
  2328.             {model = "JKGirl_MandyUW"           ,name = "Mandy"             ,style = "GS_Female_A"},
  2329.             {model = "PRGirl_PinkyUW"           ,name = "Pinky"             ,style = "GS_Female_A"},
  2330.             {model = "NDGirl_BeatriceUW"        ,name = "Beatrice"          ,style = "GS_Female_A"},
  2331.             {model = "GRGirl_LolaUW"            ,name = "Lola"              ,style = "GS_Female_A"},
  2332.             {model = "TO_Cop2"                  ,name = "OfficerWilliams"   ,style = "Authority"},
  2333.             {model = "Player_OWres"             ,name = "Jimmy"             ,style = "Player"},
  2334.             {model = "GN_Bully02"               ,name = "Davis"             ,style = "B_Striker_A"},
  2335.             {model = "TO_RichM1"                ,name = "MrBreckindale"     ,style = "GS_Male_A"},
  2336.             {model = "TO_RichM2"                ,name = "MrDoolin"          ,style = "GS_Male_A"},
  2337.             {model = "GN_Bully01"               ,name = "Troy"              ,style = "B_Striker_A"},
  2338.             {model = "TO_FireOwner"             ,name = "Nate"              ,style = "GS_Male_A"},
  2339.             {model = "TO_CSOwner_2"             ,name = "MrCarmichael"      ,style = "GS_Male_A"},
  2340.             {model = "TO_CSOwner_3"             ,name = "NickyCharles"      ,style = "GS_Male_A"},
  2341.             {model = "TE_Chemistry"             ,name = "MrWatts"           ,style = "Authority"},
  2342.             {model = "TO_Poorwoman"             ,name = "MissAbby"          ,style = "CV_OLD"},
  2343.             {model = "TO_MotelOwner"            ,name = "Mihailovich"       ,style = "GS_Male_A"},
  2344.             {model = "JKKirby_FB"               ,name = "Kirby"             ,style = "J_Striker_A"},
  2345.             {model = "JKTed_FB"                 ,name = "Ted"               ,style = "J_Striker_A"},
  2346.             {model = "JKDan_FB"                 ,name = "Dan"               ,style = "J_Striker_A"},
  2347.             {model = "JKDamon_FB"               ,name = "Damon"             ,style = "J_Striker_A"},
  2348.             {model = "TO_Carny02"               ,name = "Freeley"           ,style = "GS_Male_A"},
  2349.             {model = "TO_Carny01"               ,name = "Dorsey"            ,style = "GS_Male_A"},
  2350.             {model = "TO_CarnyMidget"           ,name = "Hector"            ,style = "GS_Male_A"},
  2351.             {model = "TO_Poorman2"              ,name = "Osbourne"          ,style = "GS_Male_A"},
  2352.             {model = "PRH2A_Chad_OBOX"          ,name = "Chad"              ,style = "P_Striker_A"},
  2353.             {model = "PRH3_Justin_OBOX"         ,name = "Justin"            ,style = "P_Striker_A"},
  2354.             {model = "PRH3a_Parker_OBOX"        ,name = "Parker"            ,style = "P_Striker_A"},
  2355.             {model = "TO_BarberRich"            ,name = "MariaTheresa"      ,style = "GS_Female_A"},
  2356.             {model = "GenericWrestler"          ,name = "Bob"               ,style = "GS_Male_A"},
  2357.             {model = "ND_FattyWrestle"          ,name = "Fatty"             ,style = "GS_Male_A"},
  2358.             {model = "TO_Industrial"            ,name = "Chuck"             ,style = "GS_Male_A"},
  2359.             {model = "TO_Associate"             ,name = "Ian"               ,style = "GS_Male_A"},
  2360.             {model = "TO_Asylumpatient"         ,name = "Fenwick"           ,style = "DO_Striker_A"},
  2361.             {model = "TE_Autoshop"              ,name = "Neil"              ,style = "Authority"},
  2362.             {model = "TO_Mailman"               ,name = "MrSvenson"         ,style = "GS_Male_A"},
  2363.             {model = "TO_Tattooist"             ,name = "Denny"             ,style = "GS_Male_A"},
  2364.             {model = "TE_Assylum"               ,name = "MrGalloway"        ,style = "Authority"},
  2365.             {model = "Nemesis_Gary"             ,name = "Gary"              ,style = "Nemesis"},
  2366.             {model = "TO_Oldman2"               ,name = "Krakauer"          ,style = "CV_OLD"},
  2367.             {model = "TO_BarberPoor"            ,name = "MrMoratti"         ,style = "GS_Male_A"},
  2368.             {model = "PR2nd_Bif_OBOX"           ,name = "Bif"               ,style = "P_Striker_A"},
  2369.             {model = "Peter"                    ,name = "Peter"             ,style = "GS_Male_A"},
  2370.             {model = "TO_RichM3"                ,name = "MrSmith"           ,style = "GS_Male_A"},
  2371.             {model = "Rat_Ped"                  ,name = "Rat"               ,style = "AN_Rat"},
  2372.             {model = "GN_LittleGirl_2"          ,name = "Melody"            ,style = "GS_Female_A"},
  2373.             {model = "GN_LittleGirl_3"          ,name = "Karen"             ,style = "GS_Female_A"},
  2374.             {model = "GN_WhiteBoy"              ,name = "Gordon"            ,style = "GS_Male_A"},
  2375.             {model = "TO_FMidget"               ,name = "Brandy"            ,style = "GS_Male_A"},
  2376.             {model = "Dog_Pitbull"              ,name = "Pitbull"           ,style = "AN_DOG"},
  2377.             {model = "GN_SkinnyBboy"            ,name = "Lance"             ,style = "GS_Male_A"},
  2378.             {model = "TO_Carnie_female"         ,name = "Crystal"           ,style = "GS_Female_A"},
  2379.             {model = "TO_Business3"             ,name = "MrMartin"          ,style = "GS_Male_A"},
  2380.             {model = "GN_Bully04"               ,name = "Ethan"             ,style = "B_Striker_A"},
  2381.             {model = "GN_Bully05"               ,name = "Wade"              ,style = "B_Striker_A"},
  2382.             {model = "GN_Bully06"               ,name = "Tom"               ,style = "B_Striker_A"},
  2383.             {model = "TO_Business4"             ,name = "MrRamirez"         ,style = "GS_Male_A"},
  2384.             {model = "TO_Business5"             ,name = "MrHuntingdon"      ,style = "GS_Male_A"},
  2385.             {model = "DO_Otto_asylum"           ,name = "Otto"              ,style = "DO_Striker_A"},
  2386.             {model = "TE_History"               ,name = "MrWiggins"         ,style = "Authority"},
  2387.             {model = "TO_Record"                ,name = "Floyd"             ,style = "GS_Male_A"},
  2388.             {model = "DO_Leon_Assylum"          ,name = "Leon"              ,style = "DO_Striker_A"},
  2389.             {model = "DO_Henry_Assylum"         ,name = "Henry"             ,style = "DO_Striker_A"},
  2390.             {model = "NDH1_FattyChocolate"      ,name = "Fatty"             ,style = "N_Striker_A"},
  2391.             {model = "TO_GroceryClerk"          ,name = "Stan"              ,style = "GS_Male_A"},
  2392.             {model = "TO_Handy"                 ,name = "Handy"             ,style = "CV_OLD"},
  2393.             {model = "TO_Orderly2"              ,name = "Gregory"           ,style = "LE_Orderly_A"},
  2394.             {model = "GN_Hboy_Ween"             ,name = "Pedro"             ,style = "GS_Male_A"},
  2395.             {model = "Nemesis_Ween"             ,name = "Gary"              ,style = "Nemesis"},
  2396.             {model = "GRH3_Lucky_Ween"          ,name = "Lucky"             ,style = "G_Striker_A"},
  2397.             {model = "NDH3a_Donald_ween"        ,name = "Donald"            ,style = "N_Ranged_A"},
  2398.             {model = "PRH3a_Parker_Ween"        ,name = "Parker"            ,style = "P_Striker_B"},
  2399.             {model = "JKH3_Casey_Ween"          ,name = "Casey"             ,style = "J_Melee_A"},
  2400.             {model = "Peter_Ween"               ,name = "Peter"             ,style = "GS_Male_A"},
  2401.             {model = "GN_AsianGirl_Ween"        ,name = "Angie"             ,style = "GS_Female_A"},
  2402.             {model = "PRGirl_Pinky_Ween"        ,name = "Pinky"             ,style = "GS_Female_A"},
  2403.             {model = "JKH1_Damon_ween"          ,name = "Damon"             ,style = "J_Striker_A"},
  2404.             {model = "GN_WhiteBoy_Ween"         ,name = "Gordon"            ,style = "GS_Male_A"},
  2405.             {model = "GN_Bully01_Ween"          ,name = "Ivan"              ,style = "B_Striker_A"},
  2406.             {model = "GN_Boy02_Ween"            ,name = "Trevor"            ,style = "B_Striker_A"},
  2407.             {model = "PR2nd_Bif_OBOX_D1"        ,name = "Bif"               ,style = "P_Striker_A"},
  2408.             {model = "GRH1a_Vance_Ween"         ,name = "Vance"             ,style = "G_Melee_A"},
  2409.             {model = "NDH2_Thad_Ween"           ,name = "Thad"              ,style = "N_Ranged_A"},
  2410.             {model = "PRGirl_Pinky_BW"          ,name = "Pinky"             ,style = "GS_Female_A"},
  2411.             {model = "DOlead_Russell_BU"        ,name = "Russell"           ,style = "B_Striker_A"},
  2412.             {model = "PRH1a_Tad_BW"             ,name = "Tad"               ,style = "P_Striker_A"},
  2413.             {model = "PRH2_Bryce_BW"            ,name = "Bryce"             ,style = "P_Grappler_A"},
  2414.             {model = "PRH3_Justin_BW"           ,name = "Justin"            ,style = "P_Striker_B"},
  2415.             {model = "GN_Asiangirl_CH"          ,name = "Angie"             ,style = "GS_Female_A"},
  2416.             {model = "GN_Sexygirl_CH"           ,name = "Christy"           ,style = "GS_Female_A"},
  2417.             {model = "PRGirl_Pinky_CH"          ,name = "Pinky"             ,style = "GS_Female_A"},
  2418.             {model = "TO_NH_Res_01"             ,name = "MrBuba"            ,style = "CV_OLD"},
  2419.             {model = "TO_NH_Res_02"             ,name = "MrGordon"          ,style = "CV_OLD"},
  2420.             {model = "TO_NH_Res_03"             ,name = "MrsLisburn"        ,style = "CV_OLD"},
  2421.             {model = "NDH1_Fatty_DM"            ,name = "Fatty"             ,style = "N_Striker_A"},
  2422.             {model = "TO_PunkBarber"            ,name = "Betty"             ,style = "GS_Male_A"},
  2423.             {model = "FightingMidget_01"        ,name = "Lightning"         ,style = "P_Striker_A"},
  2424.             {model = "FightingMidget_02"        ,name = "Zeke"              ,style = "G_Striker_A"},
  2425.             {model = "TO_Skeletonman"           ,name = "Alfred"            ,style = "GS_Male_A"},
  2426.             {model = "TO_Beardedwoman"          ,name = "Paris"             ,style = "GS_Female_A"},
  2427.             {model = "TO_CarnieMermaid"         ,name = "Courtney"          ,style = "GS_Female_A"},
  2428.             {model = "TO_Siamesetwin2"          ,name = "Delilah"           ,style = "GS_Female_A"},
  2429.             {model = "TO_Paintedman"            ,name = "Drew"              ,style = "GS_Male_A"},
  2430.             {model = "TO_GN_Workman"            ,name = "Castillo"          ,style = "GS_Male_A"},
  2431.             {model = "DOLead_Edgar_GS"          ,name = "Edgar"             ,style = "DO_Striker_A"},
  2432.             {model = "DOH3a_Gurney_GS"          ,name = "Gurney"            ,style = "DO_Grappler_A"},
  2433.             {model = "DOH2_Jerry_GS"            ,name = "Jerry"             ,style = "DO_Grappler_A"},
  2434.             {model = "DOH2a_Leon_GS"            ,name = "Leon"              ,style = "DO_Striker_A"},
  2435.             {model = "GRH2a_Hal_GS"             ,name = "Hal"               ,style = "G_Grappler_A"},
  2436.             {model = "GRH2_Norton_GS"           ,name = "Norton"            ,style = "G_Grappler_A"},
  2437.             {model = "GR2nd_Peanut_GS"          ,name = "Peanut"            ,style = "G_Striker_A"},
  2438.             {model = "GRH1a_Vance_GS"           ,name = "Vance"             ,style = "G_Melee_A"},
  2439.             {model = "JKH3a_Bo_GS"              ,name = "Bo"                ,style = "J_Melee_A"},
  2440.             {model = "JKH1_Damon_GS"            ,name = "Damon"             ,style = "J_Striker_A"},
  2441.             {model = "JK2nd_Juri_GS"            ,name = "Juri"              ,style = "J_Grappler_A"},
  2442.             {model = "JKH1a_Kirby_GS"           ,name = "Kirby"             ,style = "J_Striker_A"},
  2443.             {model = "NDH1a_Algernon_GS"        ,name = "Algernon"          ,style = "N_Striker_B"},
  2444.             {model = "NDH3_Bucky_GS"            ,name = "Bucky"             ,style = "N_Ranged_A"},
  2445.             {model = "NDH2_Thad_GS"             ,name = "Thad"              ,style = "N_Ranged_A"},
  2446.             {model = "PRH3a_Parker_GS"          ,name = "Parker"            ,style = "P_Striker_B"},
  2447.             {model = "PRH3_Justin_GS"           ,name = "Justin"            ,style = "P_Striker_B"},
  2448.             {model = "PRH1a_Tad_GS"             ,name = "Tad"               ,style = "P_Striker_A"},
  2449.             {model = "PRH1_Gord_GS"             ,name = "Gord"              ,style = "P_Striker_A"},
  2450.             {model = "NDLead_Earnest_EG"        ,name = "Earnest"           ,style = "N_Ranged_A"},
  2451.             {model = "JKlead_Ted_EG"            ,name = "Ted"               ,style = "J_Striker_A"},
  2452.             {model = "GRlead_Johnny_EG"         ,name = "Johnny"            ,style = "G_Striker_A"},
  2453.             {model = "PRlead_Darby_EG"          ,name = "Darby"             ,style = "P_Striker_A"},
  2454.             {model = "Dog_Pitbull2"             ,name = "Pitbull"           ,style = "AN_DOG"},
  2455.             {model = "Dog_Pitbull3"             ,name = "Pitbull"           ,style = "AN_DOG"},
  2456.             {model = "TE_CafeMU_W"              ,name = "Edna"              ,style = "Authority"},
  2457.             {model = "TO_Millworker"            ,name = "McInnis"           ,style = "GS_Male_A"},
  2458.             {model = "TO_Dockworker"            ,name = "Johnson"           ,style = "GS_Male_A"},
  2459.             {model = "NDH2_Thad_PJ"             ,name = "Thad"              ,style = "N_Ranged_A"},
  2460.             {model = "GN_Lblkboy_PJ"            ,name = "Sheldon"           ,style = "GS_Male_A"},
  2461.             {model = "GN_Hboy_PJ"               ,name = "Pedro"             ,style = "GS_Male_A"},
  2462.             {model = "GN_Boy01_PJ"              ,name = "Ivan"              ,style = "GS_Male_A"},
  2463.             {model = "GN_Boy02_PJ"              ,name = "Trevor"            ,style = "GS_Male_A"},
  2464.             {model = "TE_Gym_Incog"             ,name = "MrBurton"          ,style = "Authority"},
  2465.             {model = "JK_Mandy_Towel"           ,name = "Mandy"             ,style = "GS_Female_A"},
  2466.             {model = "JK_Bo_FB"                 ,name = "Bo"                ,style = "J_Melee_A"},
  2467.             {model = "JK_Casey_FB"              ,name = "Casey"             ,style = "J_Melee_A"},
  2468.             {model = "PunchBag"                 ,name = "PunchBag"          ,style = "PunchBagBS"},
  2469.             {model = "TO_Cop3"                  ,name = "OfficerMonson"     ,style = "Authority"},
  2470.             {model = "GN_GreekboyUW"            ,name = "Constantinos"      ,style = "GS_Male_A"},
  2471.             {model = "TO_Construct01"           ,name = "McInnis"           ,style = "GS_Male_A"},
  2472.             {model = "TO_Construct02"           ,name = "McInnis"           ,style = "GS_Male_A"},
  2473.             {model = "TO_Cop4"                  ,name = "OfficerWilliams"   ,style = "Authority"},
  2474.             {model = "PRH2_Bryce_OBOX_D1"       ,name = "Bryce"             ,style = "P_Striker_A"},
  2475.             {model = "PRH2_Bryce_OBOX_D2"       ,name = "Bryce"             ,style = "P_Striker_A"},
  2476.             {model = "PRH2A_Chad_OBOX_D1"       ,name = "Chad"              ,style = "P_Striker_A"},
  2477.             {model = "PRH2A_Chad_OBOX_D2"       ,name = "Chad"              ,style = "P_Striker_A"},
  2478.             {model = "PR2nd_Bif_OBOX_D2"        ,name = "Bif"               ,style = "P_Striker_A"},
  2479.             {model = "PRH3_Justin_OBOX_D1"      ,name = "Justin"            ,style = "P_Striker_A"},
  2480.             {model = "PRH3_Justin_OBOX_D2"      ,name = "Justin"            ,style = "P_Striker_A"},
  2481.             {model = "PRH3a_Prkr_OBOX_D1"       ,name = "Parker"            ,style = "P_Striker_A"},
  2482.             {model = "PRH3a_Prkr_OBOX_D2"       ,name = "Parker"            ,style = "P_Striker_A"},
  2483.             {model = "TE_Geography"             ,name = "GeographyTeacher"  ,style = "Authority"},
  2484.             {model = "TE_Music"                 ,name = "MusicTeacher"      ,style = "TE_Female_A"},
  2485.             {model = "TO_ElfF"                  ,name = "Elf"               ,style = "GS_Male_A"},
  2486.             {model = "TO_ElfM"                  ,name = "Elf"               ,style = "GS_Male_A"},
  2487.             {model = "TO_HoboSanta"             ,name = "HoboSanta"         ,style = "GS_Male_A"},
  2488.             {model = "TO_Santa"                 ,name = "Santa"             ,style = "GS_Male_A"},
  2489.             {model = "TO_Santa_NB"              ,name = "Santa"             ,style = "GS_Male_A"},
  2490.             {model = "Peter_Nutcrack"           ,name = "Peter"             ,style = "GS_Male_A"},
  2491.             {model = "GN_Fatgirl_Fairy"         ,name = "Eunice"            ,style = "GS_Fat_A"},
  2492.             {model = "GN_Lgirl_2_Flower"        ,name = "Melody"            ,style = "GS_Female_A"},
  2493.             {model = "GN_Hboy_Flower"           ,name = "Pedro"             ,style = "GS_Male_A"}
  2494.         }
  2495.     end
  2496.     function SETUP_Areas()
  2497.         Area = {
  2498.             -- areacode,x,y,z,camx,camy,camz,lookx,looky,lookz
  2499.             {14,-496.6,310.6 ,31.3,-480.6,318.5,31.4 + 2.5,-502.2,318.6,31.4},
  2500.             {60,-774.3,355.2 ,6.4,-765.7,350.3,6.4 + 2.5,-772.2,356.1,6.4},
  2501.             {30,-726.0,34.2 ,-2.3,-734.0,32.6,-2.3 + 2,-728.2,38.1,-2.3},
  2502.             {61,-694.6,346.4 ,3.2,-700.2,341.3,3.2 + 2,-695.7,348.0,3.2},
  2503.             {57,-656.8,248.8 ,15.2,-664.1,256.8,16.3 + 4,-658.1,249.0,15.2},
  2504.             {59,-749.4,352.2 ,3.5,-741.2,346.7,3.5 + 2,-749.4,353.2,3.5},
  2505.             {2,-628.4,-312.5 ,-0.0,-621.3,-316.9,-0.0 + 3.8,-628.8,-311.0,-0.0},
  2506.             {8,-756.9,-56.2,9.3,-753.4,-49.2,9.3 + 2,-757.4,-56.7,9.3},
  2507.             {0,601.4,-91.1,5.9,577.2,-111.0,5.5 + 8,601.4,-91.1,5.9,577.2},
  2508.             {27,-732.2,378.4,298.0,-697.4,368.2,293.9 + 7,-710.6,377.1,295.0},
  2509.             {0,188.2,438.3,5.3,160.9,480.3,5.3 + 12,155.2,450.2,6.11},
  2510.             {62,-749.2,637.1,30.9,-772.2,657.6,29.4 + 7,-748.8,637.4,30.9},
  2511.             {0,-50.2,-309.2,4.1,-68.2,-308.0,4.3 + 8,-50.2,-309.2,4.1},
  2512.             {38,-735.1,468.8,1.9,-735.6,473.5,1.9 + 4,-735.3,485.5,1.9},
  2513.         }
  2514.     end
  2515.     function SETUP_Doors()
  2516.         -- All doors from Scripts.IMG
  2517.         Doors = {
  2518.             "DT_DormExitDoorL","DT_ischool_Staff","DT_tschool_ExtWind","DT_tschool_HallWind",
  2519.             "DT_TSCHOOL_SCHOOLFRONTDOORL","DT_TSCHOOL_SCHOOLLEFTBACKDOOR","DT_TSCHOOL_SCHOOLLEFTFRONTDOOR",
  2520.             "DT_TSCHOOL_SCHOOLRIGHTFRONTDOOR","DT_TSCHOOL_SCHOOLRIGHTBACKDOOR","DT_tschool_GirlsDormL",
  2521.             TRIGGER._BUSDOORS,"DT_ischool_Janitor","DT_ischool_Attic","DT_tbusines_BikeShopDoor",
  2522.             TRIGGER._RA_PREPDOOR14,TRIGGER._RA_PREPDOOR15,"DT_trich_SafePrep","DT_TSCHOOL_PREPPYL",
  2523.             TRIGGER._DOOR_PREPHOUSE_STAIRS,TRIGGER._DOOR_PREPHOUSE_FOYER,"DT_PREPTOMAIN","DT_trich_BoxingDoor01",
  2524.             "DT_trich_BoxingDoor02","iboxing_ESCDoorL01","iboxing_ESCDoorR01",TRIGGER._IBOXING_ESCDOORL,
  2525.             TRIGGER._IBOXING_ESCDOORL,TRIGGER._IBOXING_ESCDOORR,TRIGGER._IBOXING_ESCDOORL01,
  2526.             TRIGGER._IBOXING_ESCDOORR01,"IBOXING_ESCDOORL","IBOXING_ESCDOORL01","IBOXING_ESCDOORR",
  2527.             "IBOXING_ESCDOORR01","DT_IBOXING_DOORL","DT_IBOXING_DOORL",TRIGGER._HATTRICK_GATE,
  2528.             TRIGGER._HATTRICKDOOR,"DT_TSCHOOL_GIRLSDORML","GDORM_UPPERDOORSTORAGE","DT_tbusines_BikeShopDoor",
  2529.             "DT_tbusines_ClothDoor","DT_tbusines_ComicShopDoor","DT_tbusines_GenShop1Door","DT_tbusines_GenShop2Door",
  2530.             "DT_tbusiness_Barber","DT_tpoor_Barber",TRIGGER._DT_TPOOR_BMX,TRIGGER._DT_TPOOR_TENWINDOW,
  2531.             TRIGGER._FMDOORN01,TRIGGER._ICOMSHP_BASEMENT,TRIGGER._FMDOORN,TRIGGER._ASYLUM_FRONT_GATE_DOOR,
  2532.             TRIGGER._DT_ASYLUM_FRONT_DOOR,"FMDoor",TRIGGER._ASYDOORS12,TRIGGER._CELLDOOR13,TRIGGER._FMDOOR,
  2533.             "CELLDOOR12","GDORM_UPPERDOOR",TRIGGER._SCGATE_OBSERVATORY,TRIGGER._NERDPATH_BRDOOR,"SCGATE_OBSERVATORY",
  2534.             TRIGGER._FUNTEETH,TRIGGER._DT_IFUNHOUS_FMDOOR,TRIGGER._IFUNHOUS_CTRLROOM,TRIGGER._IFUNHOUS_CTRLROOM,
  2535.             TRIGGER._IFUNHOUS_MZEMINE,TRIGGER._IFUNHOUS_MINEEND,TRIGGER._IFUNHOUS_ENDMINE,"DT_TSCHOOL_GYML",
  2536.             "TSCHOOL_GYMR","TSCHOOL_POOLR","DT_TSCHOOL_POOLL",TRIGGER._DT_POOL_DOORL,TRIGGER._DT_GYM_DOORL,
  2537.             TRIGGER._DT_ISCHOOL_ART,TRIGGER._DT_LIBRARYEXITR,TRIGGER._ESCDOORR,"ASYDOORB",TRIGGER._FMDOOR02,
  2538.             "ASYDOORS11","ASYDOORS12","ASYDOORS14","ASYDOORS15","CELLDOOR","CELLDOOR12","CELLDOOR13","CELLDOOR14",
  2539.             "CELLDOOR15","CELLDOOR16","CELLDOOR17","CELLDOOR18","CELLDOOR19","CELLDOOR20","CELLDOOR21",
  2540.             "FMDoor02","FMDoor03","AsyDoors13",TRIGGER._ASYDOORS13,TRIGGER._ASYDOORS14,TRIGGER._ASYBARS,
  2541.             TRIGGER._ASYBARS01,TRIGGER._ASYDOORB,TRIGGER._FMDOOR07,"FMDOOR07",TRIGGER._FMDOOR08,"FMDOOR08",
  2542.             TRIGGER._DT_ASYLUM_BACK_EXIT,"TINDUST_REDSTAR_SECURITY_DOOR",TRIGGER._TINDUST_SHDOOR_03,TRIGGER._TINDUST_SHDOOR_04,
  2543.             TRIGGER._TINDUST_REDSTAR_SECURITY_DOOR,"5_B_CHEM_DOOR","5_B_CHEM_DOOR_2","DT_ChemPlant_DoorL",
  2544.             TRIGGER._5_B_SECDOOR1,TRIGGER._5_B_SECDOOR2,POINTLIST._5_B_START,TRIGGER._5_B_CHEM_DOOR_2,TRIGGER._5_B_CHEM_DOOR_2,
  2545.             "DT_INDOOR_WHOUSEFRONT","DT_INDOOR_WHOUSEROOF","DT_whouse_front","DT_whouse_roof",TRIGGER._DT_TSCHOOL_SCHOOLFRONTDOORL,
  2546.             TRIGGER._TSCHOOL_SCHOOLFRONTDOORR,TRIGGER._DT_TSCHOOL_SCHOOLFRONTDOORL,"DT_GYM_DOORL","DT_POOL_DOORL",
  2547.             "GYML_DOORR","POOL_DOORR","DT_GDORM_DOORL","GDORM_UPPERDOORSTORAGE","GDORM_DOORR","DT_GDORM_DOORLEXIT",
  2548.             "ESCDOORL","DT_LIBRARYEXITR","DT_GDORM_DOORLEXIT","ESCDOORL",TRIGGER._TSCHOOL_PARKINGGATE,TRIGGER._CELLDOOR,
  2549.             TRIGGER._CELLDOOR12,TRIGGER._CELLDOOR14,TRIGGER._CELLDOOR15,TRIGGER._CELLDOOR16,TRIGGER._CELLDOOR17,
  2550.             TRIGGER._CELLDOOR18,TRIGGER._CELLDOOR19,TRIGGER._CELLDOOR20,TRIGGER._CELLDOOR21,TRIGGER._FMDOOR02,TRIGGER._ASYDOORB,
  2551.             TRIGGER._ASYDOORS,TRIGGER._ASYDOORS10,TRIGGER._ASYDOORS11,TRIGGER._ASYDOORS12,TRIGGER._ASYDOORS13,
  2552.             TRIGGER._ASYDOORS14,TRIGGER._ASYDOORS15,TRIGGER._DT_ISCHOOL_JANITOR,"DT_CLASSR_DOORL","DT_ischool_Art",
  2553.             TRIGGER._TINDUST_REDSTAR_GATE_01,"DT_trich_BikeShopDoor","DT_trich_FirewShopDoor","DT_trich_ClothRichDoor",
  2554.             "DT_trich_GenShopDoor",TRIGGER._JANDOORS00,TRIGGER._JANDOORS01,TRIGGER._JANDOORS02,TRIGGER._JANDOORS03B,
  2555.             TRIGGER._DT_JANITOR_SCHOOLEXIT,"TINDUST_REDSTAR_GATE_01",TRIGGER._CARNGATE01,TRIGGER._CARNGATE02,
  2556.             TRIGGER._CARNGATE03,TRIGGER._CARNGATE04,TRIGGER._IFUNHOUS_FMTRAPDR,TRIGGER._IFUNHOUS_FMTRAPDR01,
  2557.             TRIGGER._DT_ischool_AuditorDoorL,TRIGGER._DT_iSafeDrop_DoorL,TRIGGER._5_03_Control_Room_Door,TRIGGER._DT_TINDUST_CHEMEX_DOOR,
  2558.             TRIGGER._DT_Observatory,TRIGGER._DT_ASYLUM_FRONT_DOOR,TRIGGER._DT_classr_doorL,TRIGGER._DT_classr2_doorL,
  2559.             TRIGGER._DT_ChemPlant_DoorL,TRIGGER._3_S11_Path1_Door1,TRIGGER._3_S11_Path1_Door3,TRIGGER._3_S11_Path2_Door1,
  2560.             TRIGGER._3_S11_Path2_Door2,TRIGGER._5_03_Rec_Room,TRIGGER._5_03_Patient_Room1,TRIGGER._5_03_Patient_Room2,
  2561.             TRIGGER._5_03_Patient_Room3,TRIGGER._DT_ASYLUM_BACK_EXIT,TRIGGER._DT_ASYLUM_FRONT_DOOR,TRIGGER._DT_ASYLUM_SIDE_EXIT,
  2562.             TRIGGER._DT_ischool_RoofDoor,TRIGGER._DT_ischool_Staff,TRIGGER._DT_ISCHOOL_BIO,TRIGGER._DT_iSafeDrop_DoorL,
  2563.             TRIGGER._DT_tind_SafeDrop,TRIGGER._DT_tschool_SafeJock,TRIGGER._DT_iSafeGrsr_DoorL,TRIGGER._DT_tpoor_SafeGreaser,
  2564.             TRIGGER._DT_ischool_Art,TRIGGER._DT_ischool_AuditorBalc,TRIGGER._DT_ischool_Classroom,TRIGGER._DT_tschool_SchoolSideDoorL,
  2565.             TRIGGER._DT_ischool_Door01,TRIGGER._DT_Janitor_SchoolExit,TRIGGER._DT_Janitor_MainExit,TRIGGER._DT_ASYLUM_FRONT_DOOR,
  2566.             TRIGGER._DT_ASYLUM_SIDE_EXIT,TRIGGER._DT_classr_doorL,TRIGGER._DT_ChemPlant_DoorL,TRIGGER._DT_ischool_Classroom,
  2567.             TRIGGER._DT_ISCHOOL_CHEM,TRIGGER._DT_ischool_Janitor,TRIGGER._DT_ischool_PrincipalDoorL,TRIGGER._DT_ischool_Classroom,
  2568.             TRIGGER._DT_Tenement_Window,TRIGGER._DT_ASYLUM_BACK_EXIT,TRIGGER._DT_iSafeNerd_DoorL,TRIGGER._5_03_Control_Orderly_Path,
  2569.             TRIGGER._3_S11_Asylum_Gate_Warning,TRIGGER._3_S11_Asylum_Gate_Warning2,TRIGGER._ASYLUM_FRONT_DOOR_R,
  2570.             TRIGGER._DT_tschool_SchoolSideDoorL,TRIGGER._5_B_DEBUG_STAGE4,TRIGGER._5_B_EDGARMOVETO,TRIGGER._ChemPlantLower,
  2571.             TRIGGER._ChemPlantStairTunnel,TRIGGER._DT_TSCHOOL_ROOFDOOR,TRIGGER._ISCHOOL_DOOR25,
  2572.         }
  2573.     end
  2574.     function SETUP_Vehicles()
  2575.         Vehicles = {}
  2576.        
  2577.         for VehicleID = 275,298 do
  2578.             table.insert(Vehicles,VehicleID)
  2579.         end
  2580.     end
  2581.    
  2582.     local MOD_SETUP = {
  2583.         SETUP_Model,SETUP_Outfits,SETUP_Clothes,SETUP_Areas,SETUP_Doors,SETUP_Vehicles
  2584.     }
  2585.     for SETUP_NUMBER,SETUP in ipairs(MOD_SETUP) do
  2586.         SETUP()
  2587.     end
  2588.    
  2589.     -- Add blips:
  2590.     Model_Blips = {
  2591.         {psx = -490.6,psy = 314.3,psz = 31.4},
  2592.         {psx = -767.4,psy = 355.3,psz = 6.4},
  2593.         {psx = -737.3,psy = 38.3,psz = -2.3},
  2594.         {psx = -692.2,psy = 347.9,psz = 3.2},
  2595.         {psx = -661.5,psy = 244.2,psz = 15.2},
  2596.         {psx = -747.1,psy = 356.6,psz = 3.5},
  2597.     }
  2598.     for i,blips in ipairs(Model_Blips) do
  2599.         BlipAddXYZ(blips.psx,blips.psy,blips.psz,0,0,12)
  2600.     end
  2601.     VehicleBlip = BlipAddXYZ(161.9,-7.9,6.0,0,0,11)
  2602.     VehicleBlip2 = BlipAddXYZ(526.8,-411.3,2.1,0,0,11)
  2603.     AreaBlip = BlipAddXYZ(-498.3,309.0,31.3,0,0,10)
  2604.    
  2605.     -- Animation groups:
  2606.     local Anims = {
  2607.         -- BETA Idle:
  2608.         "GEN_SOCIAL",
  2609.         "4_06BigGame",
  2610.         "NIS_4_06",
  2611.         "MINI_Lock",
  2612.        
  2613.         -- Style animations:
  2614.         "Authority",
  2615.         "Boxing",
  2616.         "Russell",
  2617.         "Nemesis",
  2618.         "B_Striker",
  2619.         "CV_Female",
  2620.         "CV_Male",
  2621.         "DO_Edgar",
  2622.         "DO_Grap",
  2623.         "DO_StrikeCombo",
  2624.         "DO_Striker",
  2625.         "F_Adult",
  2626.         "F_BULLY",
  2627.         "F_Douts",
  2628.         "F_Girls",
  2629.         "F_Greas",
  2630.         "F_Jocks",
  2631.         "F_Nerds",
  2632.         "F_OldPeds",
  2633.         "F_Pref",
  2634.         "F_Preps",
  2635.         "G_Grappler",
  2636.         "G_Johnny",
  2637.         "G_Striker",
  2638.         "Grap",
  2639.         "J_Damon",
  2640.         "J_Grappler",
  2641.         "J_Melee",
  2642.         "J_Ranged",
  2643.         "J_Striker",
  2644.         "LE_Orderly",
  2645.         "N_Ranged",
  2646.         "N_Striker",
  2647.         "N_Striker_A",
  2648.         "N_Striker_B",
  2649.         "P_Grappler",
  2650.         "P_Striker",
  2651.         "PunchBag",
  2652.         "Qped",
  2653.         "Rat_Ped",
  2654.         "Russell_Pbomb",
  2655.         "Straf_Dout",
  2656.         "Straf_Fat",
  2657.         "Straf_Female",
  2658.         "Straf_Male",
  2659.         "Straf_Nerd",
  2660.         "Straf_Prep",
  2661.         "Straf_Savage",
  2662.         "Straf_Wrest",
  2663.         "TE_Female",
  2664.         "MINI_React",
  2665.     }
  2666.     -- Load animation groups:
  2667.     for i,Anim in ipairs(Anims) do
  2668.         LoadAnimationGroup(Anim)
  2669.     end
  2670.    
  2671.     -- CreateThread:
  2672.     local Thread = {
  2673.         "UM_Menu","UM_System","UM_FightingMode","UM_FixBugs","UM_Movements"
  2674.     }
  2675.     for i = 1,5 do
  2676.         CreateThread(Thread[i])
  2677.     end
  2678.    
  2679.     -- Loaded:
  2680.     gData.SystemIsLoaded = true
  2681. end
  2682.  
  2683. function main()
  2684.     while true do
  2685.         if not gData.SystemIsLoaded then
  2686.             while not SystemIsReady() or AreaIsLoading() do
  2687.                 Wait(0)
  2688.             end
  2689.            
  2690.             Setup_Mod()
  2691.         else
  2692.             Wait(0)
  2693.         end
  2694.     end
  2695. end
  2696.  
  2697. -- STimeCycle functions:
  2698.  
  2699. function F_AttendedClass()
  2700.     if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
  2701.         return
  2702.     end
  2703.     SetSkippedClass(false)
  2704.     PlayerSetPunishmentPoints(0)
  2705. end
  2706. function F_MissedClass()
  2707.     if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
  2708.         return
  2709.     end
  2710.     SetSkippedClass(true)
  2711.     StatAddToInt(166)
  2712. end
  2713. function F_AttendedCurfew()
  2714.     if not PedInConversation(gPlayer) and not MissionActive() then
  2715.         TextPrintString("You got home in time for curfew", 4)
  2716.     end
  2717. end
  2718. function F_MissedCurfew()
  2719.     if not PedInConversation(gPlayer) and not MissionActive() then
  2720.         TextPrint("TM_TIRED5", 4, 2)
  2721.     end
  2722. end
  2723. function F_StartClass()
  2724.     if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
  2725.         return
  2726.     end
  2727. end
  2728. function F_EndClass()
  2729.     if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
  2730.         return
  2731.     end
  2732. end
  2733. function F_StartMorning()
  2734.     F_UpdateTimeCycle()
  2735. end
  2736. function F_EndMorning()
  2737.     F_UpdateTimeCycle()
  2738. end
  2739. function F_StartLunch()
  2740.     if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
  2741.         F_UpdateTimeCycle()
  2742.         return
  2743.     end
  2744.     F_UpdateTimeCycle()
  2745. end
  2746. function F_EndLunch()
  2747.     F_UpdateTimeCycle()
  2748. end
  2749. function F_StartAfternoon()
  2750.     F_UpdateTimeCycle()
  2751. end
  2752. function F_EndAfternoon()
  2753.     F_UpdateTimeCycle()
  2754. end
  2755. function F_StartEvening()
  2756.     F_UpdateTimeCycle()
  2757. end
  2758. function F_EndEvening()
  2759.     F_UpdateTimeCycle()
  2760. end
  2761. function F_StartCurfew_SlightlyTired()
  2762.     F_UpdateTimeCycle()
  2763. end
  2764. function F_StartCurfew_Tired()
  2765.     F_UpdateTimeCycle()
  2766. end
  2767. function F_StartCurfew_MoreTired()
  2768.     F_UpdateTimeCycle()
  2769. end
  2770. function F_StartCurfew_TooTired()
  2771.     F_UpdateTimeCycle()
  2772. end
  2773. function F_EndCurfew_TooTired()
  2774.     F_UpdateTimeCycle()
  2775. end
  2776. function F_EndTired()
  2777.     F_UpdateTimeCycle()
  2778. end
  2779. function F_Nothing()
  2780. end
  2781. function F_ClassWarning()
  2782.     if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
  2783.         return
  2784.     end
  2785.     local l_23_0 = math.random(1, 2)
  2786. end
  2787. function F_UpdateTimeCycle()
  2788.     if not IsMissionCompleated("1_B") then
  2789.         local l_24_0 = GetCurrentDay(false)
  2790.         if l_24_0 < 0 or l_24_0 > 2 then
  2791.             SetCurrentDay(0)
  2792.         end
  2793.     end
  2794.     F_UpdateCurfew()
  2795. end
  2796. function F_UpdateCurfew()
  2797.     local l_25_0 = shared.gCurfewRules
  2798.     if not l_25_0 then
  2799.         l_25_0 = F_CurfewDefaultRules
  2800.     end
  2801.     l_25_0()
  2802. end
  2803. function F_CurfewDefaultRules()
  2804.     local l_26_0 = ClockGet()
  2805.     if l_26_0 >= 23 or l_26_0 < 7 then
  2806.         shared.gCurfew = false
  2807.     else
  2808.         shared.gCurfew = false
  2809.     end
  2810. end
Comments
Add Comment
Please, Sign In to add comment