News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: Help me out  (Read 5837 times)

0 Members and 2 Guests are viewing this topic.

Offline UltimateGamer9

  • Full Member
  • ***
  • Posts: 190
  • Gender: Male
    • View Profile
Help me out
« on: September 23, 2015, 01:40:28 AM »
Code: [Select]
function MissionSetup()
  PlayerSwapModel("GRlead_Johnny")
  PedSetActionTree(gPlayer,"/Global/Player", "Act/Anim/Player.act")
  PedSetAITree(gPlayer,"/Global/PlayerAI", "Act/AI/PlayerAI.act")
  PedSetStatsType(gPlayer,"STAT_PLAYER")
  AreaTransitionXYZ(0,531.2702026,-390.9165039,2)
  PedSetUniqueModelStatus(30,-1)
  PedSetUniqueModelStatus(31,-1)
  PedSetUniqueModelStatus(32,-1)
  PedSetUniqueModelStatus(33,-1)
  PedSetUniqueModelStatus(34,-1)
  PedSetUniqueModelStatus(35,-1)
  PedSetUniqueModelStatus(36,-1)
  PedSetUniqueModelStatus(37,-1)
  PedSetUniqueModelStatus(38,-1)
  PedSetUniqueModelStatus(40,-1)
  PedSetUniqueModelStatus(117,-1)
  PedSetUniqueModelStatus(118,-1)
  PedSetUniqueModelStatus(119,-1)
  PedSetUniqueModelStatus(163,-1)
  PedSetUniqueModelStatus(177,-1)
  PedSetUniqueModelStatus(178,-1)
  PedSetUniqueModelStatus(179,-1)
  PedSetUniqueModelStatus(211,-1)
  PedSetUniqueModelStatus(212,-1)
  PedSetUniqueModelStatus(213,-1)
  PedSetUniqueModelStatus(133,-1)
  PedSetUniqueModelStatus(214,-1)
  PedSetTypeToTypeAttitude(4,13,4)
  PedSetTypeToTypeAttitude(13,4,4)
  PedClearAllWeapons(gPlayer)
  PedSetWeapon(gPlayer,303,1)
  AreaSetDoorLocked(TRIGGER._DT_iSafeGrsr_DoorL, true)
  AreaSetDoorLocked(TRIGGER._DT_tpoor_SafeGreaser, true)
  ClockSet(21,20)
  LoadAllAnim()
end

function MissionCleanup()
  TextPrintString('',1,1)
  TextPrintString('',1,2)
  PlayerSetControl(1)
  CameraReturnToPlayer()
  CameraSetWidescreen(false)
  PlayerSwapModel("player")
  PedSetUniqueModelStatus(30,1)
  PedSetUniqueModelStatus(31,1)
  PedSetUniqueModelStatus(32,1)
  PedSetUniqueModelStatus(33,1)
  PedSetUniqueModelStatus(34,1)
  PedSetUniqueModelStatus(35,1)
  PedSetUniqueModelStatus(36,1)
  PedSetUniqueModelStatus(37,1)
  PedSetUniqueModelStatus(38,1)
  PedSetUniqueModelStatus(40,1)
  PedSetUniqueModelStatus(117,1)
  PedSetUniqueModelStatus(118,1)
  PedSetUniqueModelStatus(119,1)
  PedSetUniqueModelStatus(163,1)
  PedSetUniqueModelStatus(177,1)
  PedSetUniqueModelStatus(178,1)
  PedSetUniqueModelStatus(179,1)
  PedSetUniqueModelStatus(211,1)
  PedSetUniqueModelStatus(212,1)
  PedSetUniqueModelStatus(213,1)
  PedSetUniqueModelStatus(133,1)
  PedSetUniqueModelStatus(214,1)
  SoundStopStream()
  DisablePunishmentSystem(false)
  endThreads = true
end

function main()
  F_GoBlueBalls()
end

function F_GoBlueBalls()
  TextPrintString("Get to Blue Balls",4,1)
  Blip = BlipAddXYZ(528.3515625,-402.3206787,2,29,1,1)
  Peanut = PedCreateXYZ(21,-696.7225342,349.1651001,3)
  Norton = PedCreateXYZ(29,-696.2756348,347.7142639,3)
  PedClearAllWeapons(Norton)
  PedFaceXYZ(Peanut,-694.3693237,346.8288269,3)
  PedFaceXYZ(Norton,-695.9005737,351.0355225,3)
  PedSetStatsType(Norton,"STAT_G_GRAPPLER_A")
  local x,y = 528.3515625,-402.3206787
  local x1 = x + 1
  local y1 = y + 1
  local x2 = x - 1
  local y2 = y - 1
  repeat
   Wait(0)
  until PedInRectangle(gPlayer,x1,y1,x2,y2)
  BlipRemove(Blip)
  AreaTransitionXYZ(61,-694.9862671,348.8025513,3)
  PedFaceXYZ(gPlayer,-696.4126587,348.5187683,3)
  PedSetStationary(Peanut,true)
  PedSetStationary(Norton,true)
  PedSetStationary(gPlayer,true)
  PedSetInvulnerable(Peanut,true)
  PedSetInvulnerable(Norton,true)
  PedSetInvulnerable(gPlayer,true)
  F_TalkToGreasers()
end

function F_TalkToGreasers()
  CameraSetXYZ(-693.8265381,348.2089233,4)
  CameraLookAtObject(Johnny,2,false,1)
  CameraSetWidescreen(true)
  PlayerSetControl(0)
  TextPrintString("Johnny: Hey guys. Let's attack the preppies at Tad's house tonight",4,2)
  Wait(4000)
  CameraSetXYZ(-697.5085449,350.4649048,4)
  CameraLookAtObject(Peanut,2,false,1)
  TextPrintString("Peanut: But should we steal weapons? I don't feel like we had much weapons",4,2)
  Wait(4000)
  CameraSetXYZ(-699.2923584,345.884887,4)
  CameraLookAtObject(Norton,2,false,1)
  TextPrintString("Norton: Yeah. I even lost my sledgehammer",4,2)
  Wait(4000)
  CameraSetXYZ(-693.8265381,348.2089233,4)
  CameraLookAtObject(Johnny,2,false,1)
  TextPrintString("Johnny: All right guys. We'll search for the nerds first at the outside of observatory alright?",4,2)
  Wait(4000)
  CameraSetXYZ(-697.5085449,350.4649048,4)
  CameraLookAtObject(Peanut,2,false,1)
  TextPrintString("Peanut: OK. But how do we get there?",4,2)
  Wait(4000)
  CameraSetXYZ(-693.8265381,348.2089233,4)
  CameraLookAtObject(Johnny,2,false,1)
  TextPrintString("Johnny: We get there by jocks football field. There shouldn't be a lot of nerds there",4,2)
  Wait(4000)
  PedSetStationary(Peanut,false)
  PedSetStationary(Norton,false)
  PedSetStationary(gPlayer,false)
  PedSetInvulnerable(Peanut,false)
  PedSetInvulnerable(Norton,false)
  PedSetInvulnerable(gPlayer,false)
  CameraSetWidescreen(false)
  PlayerSetControl(1)
  CameraReturnToPlayer()
  PedRecruitAlly(gPlayer,Peanut)
  PedRecruitAlly(Peanut,Norton)
  F_GetToOutsideObservatory()
end

function F_GetToOutsideObservatory()
  TextPrintString("Get to outside of observatory",4,1)
  Blip = BlipAddXYZ(25.98703003,-134.0731812,2,29,1,1)
  Algernon = PedCreateXYZ(4,29.54535294,-130.984436,2)
  Thad = PedCreateXYZ(7,29.56653214,-137.1513672,2)
  PedClearAllWeapons(Thad)
  PedClearAllWeapons(Algernon)
  SoundPlayInteractiveStream("MS_SearchingLow.rsm",MUSIC_DEFAULT_VOLUME)
  SoundSetHighIntensityStream("MS_SearchingHigh.rsm",MUSIC_DEFAULT_VOLUME)
  SoundSetMidIntensityStream("MS_SearchingMid.rsm",MUSIC_DEFAULT_VOLUME)
  PedFaceObjectNow(Algernon,Thad,3)
  PedFaceObjectNow(Thad,Algernon,3)
  local x,y = 25.98703003,-134.0731812
  local x1 = x + 1
  local y1 = y + 1
  local x2 = x - 1
  local y2 = y - 1
  repeat
   Wait(0)
  until PedInRectangle(gPlayer,x1,y1,x2,y2)
  BlipRemove(Blip)
  PedSetStationary(Peanut,true)
  PedSetStationary(Norton,true)
  PedSetStationary(gPlayer,true)
  PedSetInvulnerable(Peanut,true)
  PedSetInvulnerable(Norton,true)
  PedSetInvulnerable(gPlayer,true)
  PedSetStationary(Thad,true)
  PedSetInvulnerable(Thad,true)
  PedSetStationary(Algernon,true)
  PedSetInvulnerable(Algernon,true)
  CameraSetXYZ(28.12877846,-135.4571228,4)
  CameraLookAtObject(Thad,2,false,1)
  CameraSetWidescreen(true)
  PedFaceObject(Thad,gPlayer,3)
  PedFaceObject(Algernon,gPlayer,3)
  PlayerSetControl(0)
  TextPrintString("Thad: Excuse me only nerds are allowed here!",4,2)
  Wait(4000)
  CameraLookAtObject(Johnny,2,false,1)
  TextPrintString("Johnny: I was looking for you nerds! Would you let me take your spudgun and brocket launcher?",4,2)
  Wait(4000)
  CameraLookAtObject(Algernon,2,false,1)
  TextPrintString("Algernon: What the hell do you grease heads want with those?!",4,2)
  Wait(4000)
  CameraLookAtObject(Johnny,2,false,1)
  TextPrintString("Johnny: The hell did you just say?",4,2)
  Wait(4000)
  CameraLookAtObject(Peanut,2,false,1)
  TextPrintString("Peanut: We're asking you one more time. Can you let us take your spudgun and brocket launcher?",4,2)
  Wait(4000)
  CameraLookAtObject(Thad,2,false,1)
  TextPrintString("Thad: No! Algie! Let's take out these scums",4,2)
  CameraSetWidescreen(false)
  PlayerSetControl(1)
  CameraReturnToPlayer()
  Wait(4000)
  TextPrintString("Take out Algie and Thad",4,1)
  PedAttack(Thad,gPlayer,1)
  PedAttack(Peanut,Algie,1)
  PedAttack(Norton,Algie,1)
  PedAttack(Algie,Peanut,1)
  PedSetTypeToTypeAttitude(1,13,0)
  PedSetTypeToTypeAttitude(4,1,0)
 
  PedSetStationary(Peanut,false)
  PedSetStationary(Norton,false)
  PedSetStationary(gPlayer,false)
  PedSetInvulnerable(Peanut,false)
  PedSetInvulnerable(Norton,false)
  PedSetInvulnerable(gPlayer,false)
  PedSetStationary(Thad,false)
  PedSetInvulnerable(Thad,false)
  PedSetStationary(Algernon,false)
  PedSetInvulnerable(Algernon,false)
  AlgieBlip = AddBlipForChar(Algernon,0,26,4)
  ThadBlip = AddBlipForChar(Thad,0,26,4)
  repeat
   Wait(0)
  until PedIsDead(Thad) and PedIsDead(Algernon)   
  BlipRemove(AlgieBlip)
  BlipRemove(ThadBlip)
  F_Part4()
end

function F_Part4()
  TextPrintString("Take their weapons near the door",4,1)
  Blip = BlipAddXYZ(45.82777023,-137.7559052,2,29,1,1)
  Blip1 = BlipAddXYZ(44.49743652,-128.7223663,2,29,1,1)
  repeat
   Wait(0)
  until PedHasWeapon(gPlayer,305) and PedHasWeapon(gPlayer,307)
  BlipRemove(Blip)
  BlipRemove(Blip1)
  TextPrintString("Peanut and Norton: So what now?",4,2)
  Wait(4000)
  TextPrintString("Johnny: We have the weapons. Now we'll go to Tad's house",4,2)
  Wait(4000)
  TextPrintString("Go to Tad's house",4,1)
  F_GoToTadHouse()
end

function F_GoToTadHouse()
  Blip = BlipAddXYZ(443.9819336,495.5545349,23,29,1,4)
  local x,y = 443.9819336,495.5545349
  local x1 = x + 1
  local y1 = y + 1
  local x2 = x - 1
  local y2 = y - 1
  repeat
   Wait(0)
  until PedInRectangle(gPlayer,x1,y1,x2,y2)
  Tommy = PedCreateXYZ(56,430.2996521,475.4181519,29)
  Victor = PedCreateXYZ(83,430.6325073,465.8745117,29)
  Luis = PedCreateXYZ(116,435.1289673,458.1964417,29)
  Micheal = PedCreateXYZ(144,455.8418274,460.7871094,29)
  Franklin = PedCreateXYZ(148,455.7272339,468.2515564,29)
  Claude = PedCreateXYZ(195,452.1669617,477.2362366,29)
  CameraSetXYZ(444.5194092,488.6058655,27)
  CameraLookAtObject(gPlayer,2,false,1)
  CameraSetWidescreen(true)
  PlayerSetControl(0)
  PedSetStationary(Peanut,true)
  PedSetStationary(Norton,true)
  PedSetStationary(gPlayer,true)
  PedSetInvulnerable(Peanut,true)
  PedSetInvulnerable(Norton,true)
  PedSetInvulnerable(gPlayer,true)
  PedSetStationary(Tommy,true)
  PedSetStationary(Victor,true)
  PedSetStationary(Luis,true)
  PedSetInvulnerable(Tommy,true)
  PedSetInvulnerable(Victor,true)
  PedSetInvulnerable(Luis,true)
  PedSetStationary(Micheal,true)
  PedSetStationary(Franklin,true)
  PedSetStationary(Claude,true)
  PedSetInvulnerable(Micheal,true)
  PedSetInvulnerable(Franklin,true)
  PedSetInvulnerable(Claude,true)
  PedOverrideStat(Tommy,45,"spudg")
  PedOverrideStat(Victor,45,"spudg")
  PedOverrideStat(Luis,45,"spudg")
  PedOverrideStat(Tommy,46,-1)
  PedOverrideStat(Victor,46,-1)
  PedOverrideStat(Luis,46,-1)
  PedOverrideStat(Micheal,45,"brocketlauncher")
  PedOverrideStat(Franklin,45,"brocketlauncher")
  PedOverrideStat(Claude,45,"brocketlauncher")
  PedOverrideStat(Micheal,46,-1)
  PedOverrideStat(Franklin,46,-1)
  PedOverrideStat(Claude,46,-1)
  PedSetFaction(Micheal,6)
  PedSetFaction(Tommy,6)
  PedSetFaction(Victor,6)
  PedSetFaction(Franklin,6)
  PedSetFaction(Claude,6)
  PedSetFaction(Luis,6)
  TextPrintString("Johnny: Wait a minute there doesn't seem to have preppies here",4,2)
  Wait(4000)
  CameraLookAtObject(Peanut,2,false,1)
  TextPrintString("Peanut: Hm? Interesting. Could they have been..?",4,2)
  Wait(4000)
  CameraLookAtObject(Claude,2,false,1)
  TextPrintString("???: Motherfucker!",4,2)
  Wait(4000)
  CameraLookAtObject(gPlayer,2,false,1)
  TextPrintString("Johnny: WHAT THE?!",4,2)
  PedFaceObjectNow(gPlayer,Claude,3)
  PedFaceObjectNow(Claude,gPlayer,3)
  Wait(4000)
  CameraLookAtObject(Claude,2,false,1)
  TextPrintString("Claude: You are one of the bullworth students right? We were waiting for you!",4,2)
  Wait(4000)
  CameraLookAtObject(gPlayer,2,false,1)
  TextPrintString("Johnny: Well, thanks for taking out the preps. And why did you attack the preps?",4,2)
  Wait(4000)
  CameraLookAtObject(Claude,2,false,1)
  TextPrintString("Claude: I have no intention of telling you. But we're gonna take you out here and now.",4,2)
  Wait(4000)
  CameraReturnToPlayer()
  TextPrintString("Take out the unknown peds",4,2)
  SoundPlayStream("MS_ActionHigh_NISReturn",MUSIC_DEFAULT_VOLUME)
  PedSetStationary(Peanut,false)
  PedSetStationary(Norton,false)
  PedSetStationary(gPlayer,false)
  PedSetInvulnerable(Peanut,false)
  PedSetInvulnerable(Norton,false)
  PedSetInvulnerable(gPlayer,false)
  PedSetInvulnerable(Micheal,false)
  PedSetInvulnerable(Franklin,false)
  PedSetInvulnerable(Claude,false)
  PedSetInvulnerable(Tommy,false)
  PedSetInvulnerable(Victor,false)
  PedSetInvulnerable(Luis,false)
  TommyBlip = AddBlipForChar(Tommy,0,26,4)
  VictorBlip = AddBlipForChar(Victor,0,26,4)
  LuisBlip = AddBlipForChar(Luis,0,26,4)
  MichealBlip = AddBlipForChar(Micheal,0,26,4)
  FranklinBlip = AddBlipForChar(Franklin,0,26,4)
  ClaudeBlip = AddBlipForChar(Claude,0,26,4)
  PedAttackPlayer(Tommy,1)
  PedAttackPlayer(Victor,1)
  PedAttackPlayer(Luis,1)
  PedAttackPlayer(Micheal,1)
  PedAttackPlayer(Franklin,1)
  PedAttackPlayer(Claude,1)
  repeat
   Wait(0)
  until PedIsDead(Tommy) and PedIsDead(Victor) and PedIsDead(Luis) and PedIsDead(Micheal) and PedIsDead(Franklin) and PedIsDead(Claude)
  SoundStopStream()
  F_GetBack()
end

function F_GetBack()
  TextPrintString("Johnny: What the hell was that?",4,2)
  Wait(4000)
  TextPrintString("Peanut: I dunno. But I think things are going crazy here.",4,2)
  Wait(4000)
  TextPrintString("Norton: Hmm. I wish I had my sledgehammer",4,2)
  Wait(4000)
  TextPrintString("Johnny: All right guys. Let's get outta here or preps will show up for trespassing",4,2)
  Wait(4000)
  TextPrintString("Get back to Blue Balls",4,2)
  Sledgehammer = PickupCreateXYZ(324,523.6373901,-409.7450562,2)
  local x,y = 524.6149902,-398.5663147
  local x1 = x + 1
  local y1 = y + 1
  local x2 = x - 1
  local y2 = y - 1
  repeat
   Wait(0)
  until PedInRectangle(gPlayer,x1,y1,x2,y2)
  CameraSetXYZ(524.9832764,-402.6510315,4)
  CameraLookAtObject(Sledgehammer,2,false,1)
  CameraSetWidescreen(true)
  PlayerSetControl(0)
  PedSetStationary(Peanut,true)
  PedSetStationary(gPlayer,true)
  PedSetInvulnerable(Peanut,true)
  PedSetInvulnerable(Norton,true)
  PedSetInvulnerable(gPlayer,true)
  TextPrintString("Norton: The hell? Who put my sledgehammer there?",4,2)
  PedMoveToXYZ(Norton,1,522.3024902,-409.7972717,2)
  Wait(4000)
  TextPrintString("Peanut: Well you can get it. Now take it",4,2)
  Wait(4000)
  CameraLookAtObject(Norton,2,false,1)
  ExecuteActionNode(Norton,"/Global/Weapons/PickUpActions/Pickup", "Act/Weapons.act")
  repeat
   Wait(0)
  until PedHasWeapon(Norton,324)
  F_InsideGreaserSafehouse()
end

function F_InsideGreaserSafehouse()
  Toni = PedCreateXYZ(132,-697.3081055,355.1967163,3)
  Carl = PedCreateXYZ(124,-704.7169189,346.0340881,3)
  Niko = PedCreateXYZ(108,-701.4672852,350.5107422,3)
  Johnny = PedCreateXYZ(86,-693.6425781,357.5037842,3)
  Trevor = PedCreateXYZ(125,-694.6843872,354.721344,3)
  Blip = BlipAddXYZ(528.3515625,-402.3206787,2,29,1,1)
  PedSetFaction(Toni,6)
  PedSetFaction(Carl,6)
  PedSetFaction(Niko,6)
  PedSetFaction(Johnny,6)
  PedSetFaction(Trevor,6)
  PedOverrideStat(Toni,4,600)
  PedOverrideStat(Carl,4,600)
  PedOverrideStat(Niko,4,600)
  PedOverrideStat(Johnny,4,600)
  PedOverrideStat(Trevor,4,600)
  PedOverrideStat(Toni,8,100)
  PedOverrideStat(Carl,8,100)
  PedOverrideStat(Niko,8,100)
  PedOverrideStat(Johnny,8,100)
  PedOverrideStat(Trevor,8,100)
  PedOverrideStat(Toni,12,75)
  PedOverrideStat(Carl,12,75)
  PedOverrideStat(Niko,12,75)
  PedOverrideStat(Johnny,12,75)
  PedOverrideStat(Trevor,12,75)
  PedSetActionTree(Toni,"/Global/Nemesis", "Act/Anim/Nemesis.act")
  PedSetActionTree(Carl,"/Global/DO_Edgar", "Act/Anim/DO_Edgar.act")
  PedSetActionTree(Niko,"/Global/BOSS_Russell", "Act/Anim/BOSS_Russell.act")
  PedSetActionTree(Johnny,"/Global/G_Johnny", "Act/Anim/G_Johnny.act")
  PedSetActionTree(Trevor,"/Global/J_Ted", "Act/Anim/J_Ted.act")
  local x,y = 528.3515625,-402.3206787
  local x1 = x + 1
  local y1 = y + 1
  local x2 = x - 1
  local y2 = y - 1
  repeat
   Wait(0)
  until PedInRectangle(gPlayer,x1,y1,x2,y2) and AreaGetVisible() == 61
  BlipRemove(Blip)
  PedSetActionTree(Norton,"/Global/Norton", "Act/Anim/3_05_Norton.act")
  PedSetAITree(Norton,"/Global/NortonAI", "Act/AI/AI_Norton.act")
  AreaTransitionXYZ(61,-694.9862671,348.8025513,3)
  CameraSetXYZ(-695.7575684,352.0031433,4)
  CameraLookAtObject(gPlayer,2,false,1)
  PedFaceXYZ(Toni,-697.5186157,352.9267883,3)
  PedMoveToXYZ(Johnny,0,-697.5186157,352.9267883,3)
  PedFaceObject(Trevor,gPlayer,3)
  PedSetStationary(Toni,true)
  PedSetStationary(Niko,true)
  PedSetStationary(Carl,true)
  PedSetStationary(Trevor,true)
  PedSetStationary(Johnny,true)
  PedSetInvulnerable(Peanut,true)
  PedSetInvulnerable(Norton,true)
  PedSetInvulnerable(gPlayer,true)
  PedSetInvulnerable(Toni,true)
  PedSetInvulnerable(Niko,true)
  PedSetInvulnerable(Trevor,true)
  PedSetInvulnerable(Carl,true)
  PedSetInvulnerable(Johnny,true)
  CameraSetWidescreen(true)
  PlayerSetControl(0)
  TextPrintString("Johnny: What the?! What are you doing here?",4,2)
  Wait(4000)
  CameraLookAtObject(Toni,2,false,1)
  TextPrintString("Toni: Well, it seems you took out the six of them from Tad's house I heard",4,2)
  Wait(4000)
  CameraLookAtObject(gPlayer,2,false,1)
  TextPrintString("Johnny: So you guys are the one who did that!",4,2)
  Wait(4000)
  CameraLookAtObject(Trevor,2,false,1)
  TextPrintString("Trevor: Looks like the intel is correct. They are the ones that took out Tommy and the rest of them",4,2)
  Wait(4000)
  CameraLookAtObject(gPlayer,2,false,1)
  TextPrintString("Johnny: I'm gonna take you out here!",4,2)
  Wait(4000)
  CameraLookAtObject(Toni,2,false,1)
  TextPrintString("Toni: I shall do the same to you",4,2)
  Wait(4000)
  CameraLookAtObject(gPlayer,2,false,1)
  TextPrintString("Johnny: Three on two. Seems we can win",4,2)
  Wait(4000)
  CameraLookAtObject(Toni,2,false,1)
  TextPrintString("Toni: Then allow me to even the odds",4,2)
  Wait(4000)
  CameraSetWidescreen(false)
  PlayerSetControl(1)
  CameraReturnToPlayer()
  F_Fight()
end

function F_Fight()
  TextPrintString("Take out the peds that are from other city",4,1)
  SoundPlayStream("MS_FightingJohnnyVincentFight.rsm",MUSIC_DEFAULT_VOLUME)
  ExecuteActionNode(Toni,"/Global/2_B/DrbyVault/PlayAnim","Act/Conv/2_B.act")
  ToniBlip = AddBlipForChar(Toni,0,26,4)
  NikoBlip = AddBlipForChar(Niko,0,26,4)
  CarlBlip = AddBlipForChar(Carl,0,26,4)
  Trevorlip = AddBlipForChar(Trevor,0,26,4)
  JohnnyBlip = AddBlipForChar(Johnny,0,26,4)
  PedSetStationary(Toni,false)
  PedSetStationary(Niko,false)
  PedSetStationary(Carl,false)
  PedSetStationary(Trevor,false)
  PedSetStationary(Johnny,false)
  PedSetInvulnerable(Peanut,false)
  PedSetInvulnerable(Norton,false)
  PedSetInvulnerable(gPlayer,false)
  PedSetInvulnerable(Toni,false)
  PedSetInvulnerable(Niko,false)
  PedSetInvulnerable(Trevor,false)
  PedSetInvulnerable(Carl,false)
  PedSetInvulnerable(Johnny,false)
  PedAttackPlayer(Toni,1)
  PedAttackPlayer(Niko,1)
  PedAttack(Carl,Peanut,1)
  PedAttack(Trevor,Norton,1)
  PedAttack(Johnny,Norton,1)
  repeat
  if PedIsDead(Peanut) then
  TextPrintString("Peanut was knocked out!",4,1)
  Wait(2000)
  MissionFail()
  TerminateCurrentScript()
  elseif PedIsDead(Norton) then
  TextPrintString("Norton was knocked out!",4,1)
  Wait(2000)
  MissionFail()
  TerminateCurrentScript()
  elseif PedIsDead(gPlayer) then
  TextPrintString("You were knocked out!",4,1)
  Wait(2000)
  MissionFail()
  TerminateCurrentScript()
  PlayerSwapModel("player")
  end
  Wait(0)
  until PedIsDead(Toni) and PedIsDead(Niko) and PedIsDead(Trevor) and PedIsDead(Carl) and PedIsDead(Johnny)
  F_Ending()
end

function F_Ending()
  CameraSetXYZ(-695.7575684,352.0031433,4)
  CameraLookAtObject(gPlayer,2,false,1)
  TextPrintString("Johnny: Now you guys were beaten down! And get outta here!",4,2)
  Wait(4000)
  TextPrintString("Peanut: Well, at least its settled",4,2)
  Wait(4000)
  TextPrintString("Norton: Yeah I'm kinda tired",4,2)
  SoundPlayStream("MS_3-B_ENDTAG.rsm",MUSIC_DEFAULT_VOLUME)
  Wait(2000)
  MissionSucceed()
end

function LoadAllAnim()
  LoadAnimationGroup("Authority")
  LoadAnimationGroup("Boxing")
  LoadAnimationGroup("B_Striker")
  LoadAnimationGroup("CV_Female")
  LoadAnimationGroup("CV_Male")
  LoadAnimationGroup("DO_Edgar")
  LoadAnimationGroup("DO_Grap")
  LoadAnimationGroup("DO_StrikeCombo")
  LoadAnimationGroup("DO_Striker")
  LoadAnimationGroup("F_Adult")
  LoadAnimationGroup("F_BULLY")
  LoadAnimationGroup("F_Crazy")
  LoadAnimationGroup("F_Douts")
  LoadAnimationGroup("F_Girls")
  LoadAnimationGroup("F_Greas")
  LoadAnimationGroup("F_Jocks")
  LoadAnimationGroup("F_Nerds")
  LoadAnimationGroup("F_OldPeds")
  LoadAnimationGroup("F_Pref")
  LoadAnimationGroup("F_Preps")
  LoadAnimationGroup("G_Grappler")
  LoadAnimationGroup("G_Johnny")
  LoadAnimationGroup("G_Striker")
  LoadAnimationGroup("Grap")
  LoadAnimationGroup("J_Damon")
  LoadAnimationGroup("J_Grappler")
  LoadAnimationGroup("J_Melee")
  LoadAnimationGroup("J_Ranged")
  LoadAnimationGroup("J_Striker")
  LoadAnimationGroup("LE_Orderly")
  LoadAnimationGroup("Nemesis")
  LoadAnimationGroup("N_Ranged")
  LoadAnimationGroup("N_Striker")
  LoadAnimationGroup("N_Striker_A")
  LoadAnimationGroup("N_Striker_B")
  LoadAnimationGroup("P_Grappler")
  LoadAnimationGroup("P_Striker")
  LoadAnimationGroup("PunchBag")
  LoadAnimationGroup("Qped")
  LoadAnimationGroup("Rat_Ped")
  LoadAnimationGroup("Russell")
  LoadAnimationGroup("Russell_Pbomb")
  LoadAnimationGroup("Straf_Dout")
  LoadAnimationGroup("Straf_Fat")
  LoadAnimationGroup("Straf_Female")
  LoadAnimationGroup("Straf_Male")
  LoadAnimationGroup("Straf_Nerd")
  LoadAnimationGroup("Straf_Prep")
  LoadAnimationGroup("Straf_Savage")
  LoadAnimationGroup("Straf_Wrest")
  LoadAnimationGroup("TE_Female")
  LoadAnimationGroup("1_02BYourSchool")
  LoadAnimationGroup("1_02_MeetWithGary")
  LoadAnimationGroup("1_03The Setup")
  LoadAnimationGroup("1_04TheSlingshot")
  LoadAnimationGroup("1_06ALittleHelp")
  LoadAnimationGroup("1_07_SaveBucky")
  LoadAnimationGroup("1_07_Sk8Board")
  LoadAnimationGroup("1_08ThatBitch")
  LoadAnimationGroup("1_08_MandPuke")
  LoadAnimationGroup("1_09_Candidate")
  LoadAnimationGroup("1_10Betrayal")
  LoadAnimationGroup("1_11B_HeBigPrank")
  LoadAnimationGroup("1_G1_TheDiary")
  LoadAnimationGroup("1_S01HatVsGall")
  LoadAnimationGroup("2_01LastMinuteShop")
  LoadAnimationGroup("2_02ComicKlepto")
  LoadAnimationGroup("2_05TadsHouse")
  LoadAnimationGroup("2_06MovieTickets")
  LoadAnimationGroup("2_07BeachRumble")
  LoadAnimationGroup("2_08WeedKiller")
  LoadAnimationGroup("2_4RichAreaRace")
  LoadAnimationGroup("2_G2CarnivalDate")
  LoadAnimationGroup("2_G2_GiftExchange")
  LoadAnimationGroup("2_R03PaperRoute")
  LoadAnimationGroup("2_S02CharSheets")
  LoadAnimationGroup("2_S04CharSheets")
  LoadAnimationGroup("2_S05_CooksCrush")
  LoadAnimationGroup("2_S06PantyRaid")
  LoadAnimationGroup("3_01JealousJohnny")
  LoadAnimationGroup("3_04WrongPtTown")
  LoadAnimationGroup("3_05TheTenements")
  LoadAnimationGroup("3_BFightJohnnyV")
  LoadAnimationGroup("3_G3")
  LoadAnimationGroup("3_R05ChemicalDeliv")
  LoadAnimationGroup("3_R08RaceLeague")
  LoadAnimationGroup("3_S03CheatinTime")
  LoadAnimationGroup("4_01Paparazzi")
  LoadAnimationGroup("4_04_FunhouseFun")
  LoadAnimationGroup("4_06BigGame")
  LoadAnimationGroup("4_B2_JockBossBattle")
  LoadAnimationGroup("5_01Grp")
  LoadAnimationGroup("5_01Rats")
  LoadAnimationGroup("5_02PrVandalized")
  LoadAnimationGroup("5_05Zoe")
  LoadAnimationGroup("5_09MakingAMark")
  LoadAnimationGroup("6B_PARA")
  LoadAnimationGroup("AGymLght")
  LoadAnimationGroup("Ambient")
  LoadAnimationGroup("Ambient2")
  LoadAnimationGroup("Ambient3")
  LoadAnimationGroup("ANIBBALL")
  LoadAnimationGroup("AniBroom")
  LoadAnimationGroup("AniDice")
  LoadAnimationGroup("AniFooty")
  LoadAnimationGroup("AniGlobe")
  LoadAnimationGroup("AnimSave")
  LoadAnimationGroup("AniPillo")
  LoadAnimationGroup("ARC3D")
  LoadAnimationGroup("Area_Asylum")
  LoadAnimationGroup("Area_Funhouse")
  LoadAnimationGroup("Area_GirlsDorm")
  LoadAnimationGroup("Area_Infirmary")
  LoadAnimationGroup("Area_School")
  LoadAnimationGroup("Area_Tenements")
  LoadAnimationGroup("Armor")
  LoadAnimationGroup("AsyBars")
  LoadAnimationGroup("AsyDoorB")
  LoadAnimationGroup("AsyDoors")
  LoadAnimationGroup("AsyGate")
  LoadAnimationGroup("AsyLever")
  LoadAnimationGroup("AsySwtch")
  LoadAnimationGroup("AtcPlank")
  LoadAnimationGroup("Authority")
  LoadAnimationGroup("BANANA")
  LoadAnimationGroup("barelLad")
  LoadAnimationGroup("BarrGate")
  LoadAnimationGroup("BATON")
  LoadAnimationGroup("BBALL_21")
  LoadAnimationGroup("bbgun")
  LoadAnimationGroup("BCatcher")
  LoadAnimationGroup("BdrDoorL")
  LoadAnimationGroup("BeardLady")
  LoadAnimationGroup("Bike")
  LoadAnimationGroup("BikeGar")
  LoadAnimationGroup("BoldRoll")
  LoadAnimationGroup("BoltCutt")
  LoadAnimationGroup("Boxing")
  LoadAnimationGroup("BoxRopes")
  LoadAnimationGroup("BRDoor")
  LoadAnimationGroup("BrkSwtch")
  LoadAnimationGroup("BROCKETL")
  LoadAnimationGroup("BRSwitch")
  LoadAnimationGroup("BusDoors")
  LoadAnimationGroup("Butcher")
  LoadAnimationGroup("BXPBag")
  LoadAnimationGroup("B_Striker")
  LoadAnimationGroup("CarnCurt")
  LoadAnimationGroup("CARNI01")
  LoadAnimationGroup("carnies")
  LoadAnimationGroup("Car_Ham")
  LoadAnimationGroup("Cavalier")
  LoadAnimationGroup("Cheer_Cool1")
  LoadAnimationGroup("Cheer_Cool2")
  LoadAnimationGroup("Cheer_Cool3")
  LoadAnimationGroup("Cheer_Gen1")
  LoadAnimationGroup("Cheer_Gen2")
  LoadAnimationGroup("Cheer_Gen3")
  LoadAnimationGroup("Cheer_Girl1")
  LoadAnimationGroup("Cheer_Girl2")
  LoadAnimationGroup("Cheer_Girl3")
  LoadAnimationGroup("Cheer_Girl4")
  LoadAnimationGroup("Cheer_Nerd1")
  LoadAnimationGroup("Cheer_Nerd2")
  LoadAnimationGroup("Cheer_Nerd3")
  LoadAnimationGroup("Cheer_Posh1")
  LoadAnimationGroup("Cheer_Posh2")
  LoadAnimationGroup("Cheer_Posh3")
  LoadAnimationGroup("Chem_Set")
  LoadAnimationGroup("ChLead_Idle")
  LoadAnimationGroup("CLadderA")
  LoadAnimationGroup("CnGate")
  LoadAnimationGroup("Coaster")
  LoadAnimationGroup("COPBIKE")
  LoadAnimationGroup("Cop_Frisk")
  LoadAnimationGroup("CV_Female")
  LoadAnimationGroup("CV_Male")
  LoadAnimationGroup("C_Wrestling")
  LoadAnimationGroup("DartBrd")
  LoadAnimationGroup("DartCab")
  LoadAnimationGroup("DodgeBall")
  LoadAnimationGroup("DodgeBall2")
  LoadAnimationGroup("DoorStr1")
  LoadAnimationGroup("DO_Edgar")
  LoadAnimationGroup("DO_Grap")
  LoadAnimationGroup("DO_StrikeCombo")
  LoadAnimationGroup("DO_Striker")
  LoadAnimationGroup("DRBrace")
  LoadAnimationGroup("Drumming")
  LoadAnimationGroup("DuffBag")
  LoadAnimationGroup("DunkBttn")
  LoadAnimationGroup("DunkSeat")
  LoadAnimationGroup("Earnest")
  LoadAnimationGroup("EnglishClass")
  LoadAnimationGroup("ErrandCrab")
  LoadAnimationGroup("Errand_BUS")
  LoadAnimationGroup("Errand_IND")
  LoadAnimationGroup("Errand_RIC")
  LoadAnimationGroup("Errand_SCH")
  LoadAnimationGroup("ESCDoorL")
  LoadAnimationGroup("ESCDoorR")
  LoadAnimationGroup("ExtWind")
  LoadAnimationGroup("FDoor")
  LoadAnimationGroup("FDoorB")
  LoadAnimationGroup("FDoorC")
  LoadAnimationGroup("Ferris")
  LoadAnimationGroup("FGhost")
  LoadAnimationGroup("FGoblin")
  LoadAnimationGroup("FlagA")
  LoadAnimationGroup("FLbBook")
  LoadAnimationGroup("FlbLader")
  LoadAnimationGroup("FLbPaint")
  LoadAnimationGroup("FLbTable")
  LoadAnimationGroup("FMCntrl")
  LoadAnimationGroup("FMDoor")
  LoadAnimationGroup("FMTrapDr")
  LoadAnimationGroup("FMTrapSw")
  LoadAnimationGroup("FortTell")
  LoadAnimationGroup("funCart")
  LoadAnimationGroup("funCurtn")
  LoadAnimationGroup("funMiner")
  LoadAnimationGroup("funRocks")
  LoadAnimationGroup("FunTeeth")
  LoadAnimationGroup("FXTestG")
  LoadAnimationGroup("F_Adult")
  LoadAnimationGroup("F_BULLY")
  LoadAnimationGroup("F_Crazy")
  LoadAnimationGroup("F_Douts")
  LoadAnimationGroup("F_Girls")
  LoadAnimationGroup("F_Greas")
  LoadAnimationGroup("F_Jocks")
  LoadAnimationGroup("F_Nerds")
  LoadAnimationGroup("F_OldPeds")
  LoadAnimationGroup("F_Pref")
  LoadAnimationGroup("F_Preps")
  LoadAnimationGroup("GarbCanA")
  LoadAnimationGroup("GatCool")
  LoadAnimationGroup("GEN_SOCIAL")
  LoadAnimationGroup("Gfight")
  LoadAnimationGroup("GhostDrs")
  LoadAnimationGroup("Gift")
  LoadAnimationGroup("Go_Cart")
  LoadAnimationGroup("Grap")
  LoadAnimationGroup("GymHoop")
  LoadAnimationGroup("GymWLad")
  LoadAnimationGroup("G_Grappler")
  LoadAnimationGroup("G_Johnny")
  LoadAnimationGroup("G_Striker")
  LoadAnimationGroup("Halloween")
  LoadAnimationGroup("HallWind")
  LoadAnimationGroup("Hang_Jock")
  LoadAnimationGroup("Hang_Moshing")
  LoadAnimationGroup("Hang_Talking")
  LoadAnimationGroup("Hang_Workout")
  LoadAnimationGroup("Hobos")
  LoadAnimationGroup("Hobo_Cheer")
  LoadAnimationGroup("HSdinger")
  LoadAnimationGroup("HUMIL_4-10_B")
  LoadAnimationGroup("HUMIL_4-10_C")
  LoadAnimationGroup("HUMIL_5-8F_A")
  LoadAnimationGroup("HUMIL_5-8F_B")
  LoadAnimationGroup("HUMIL_5-8V4-10")
  LoadAnimationGroup("HUMIL_5-8V6-1")
  LoadAnimationGroup("HUMIL_5-8VPLY")
  LoadAnimationGroup("HUMIL_5-8_A")
  LoadAnimationGroup("HUMIL_5-8_B")
  LoadAnimationGroup("HUMIL_5-8_C")
  LoadAnimationGroup("HUMIL_6-1V4-10")
  LoadAnimationGroup("HUMIL_6-1V6-1")
  LoadAnimationGroup("HUMIL_6-1VPLY")
  LoadAnimationGroup("HUMIL_6-1_A")
  LoadAnimationGroup("HUMIL_6-1_B")
  LoadAnimationGroup("HUMIL_6-1_C")
  LoadAnimationGroup("HUMIL_6-5V4-10")
  LoadAnimationGroup("HUMIL_6-5V6-1")
  LoadAnimationGroup("HUMIL_6-5VPLY")
  LoadAnimationGroup("HUMIL_6-5_A")
  LoadAnimationGroup("HUMIL_6-5_B")
  LoadAnimationGroup("HUMIL_6-5_C")
  LoadAnimationGroup("IDLE_AUTH_A")
  LoadAnimationGroup("IDLE_AUTH_B")
  LoadAnimationGroup("IDLE_AUTH_C")
  LoadAnimationGroup("IDLE_AUTH_D")
  LoadAnimationGroup("IDLE_BULLY_A")
  LoadAnimationGroup("IDLE_BULLY_B")
  LoadAnimationGroup("IDLE_BULLY_C")
  LoadAnimationGroup("IDLE_BULLY_D")
  LoadAnimationGroup("IDLE_CIVF_A")
  LoadAnimationGroup("IDLE_CIVF_B")
  LoadAnimationGroup("IDLE_CIVF_C")
  LoadAnimationGroup("IDLE_CIVM_A")
  LoadAnimationGroup("IDLE_CIVM_B")
  LoadAnimationGroup("IDLE_CIVM_C")
  LoadAnimationGroup("IDLE_DOUT_A")
  LoadAnimationGroup("IDLE_DOUT_B")
  LoadAnimationGroup("IDLE_DOUT_C")
  LoadAnimationGroup("IDLE_DOUT_D")
  LoadAnimationGroup("IDLE_FATG_A")
  LoadAnimationGroup("IDLE_FATG_B")
  LoadAnimationGroup("IDLE_FATG_C")
  LoadAnimationGroup("IDLE_FAT_A")
  LoadAnimationGroup("IDLE_FAT_B")
  LoadAnimationGroup("IDLE_FAT_C")
  LoadAnimationGroup("IDLE_GREAS_A")
  LoadAnimationGroup("IDLE_GREAS_B")
  LoadAnimationGroup("IDLE_GREAS_C")
  LoadAnimationGroup("IDLE_GREAS_D")
  LoadAnimationGroup("IDLE_GSF_A")
  LoadAnimationGroup("IDLE_GSF_B")
  LoadAnimationGroup("IDLE_GSF_C")
  LoadAnimationGroup("IDLE_GSM_A")
  LoadAnimationGroup("IDLE_GSM_B")
  LoadAnimationGroup("IDLE_GSM_C")
  LoadAnimationGroup("IDLE_JOCK_A")
  LoadAnimationGroup("IDLE_JOCK_B")
  LoadAnimationGroup("IDLE_JOCK_C")
  LoadAnimationGroup("IDLE_JOCK_D")
  LoadAnimationGroup("IDLE_NERD_A")
  LoadAnimationGroup("IDLE_NERD_B")
  LoadAnimationGroup("IDLE_NERD_C")
  LoadAnimationGroup("IDLE_NERD_D")
  LoadAnimationGroup("IDLE_NGIRL")
  LoadAnimationGroup("IDLE_PREP_A")
  LoadAnimationGroup("IDLE_PREP_B")
  LoadAnimationGroup("IDLE_PREP_C")
  LoadAnimationGroup("IDLE_PREP_D")
  LoadAnimationGroup("IDLE_SEXY_A")
  LoadAnimationGroup("IDLE_SEXY_B")
  LoadAnimationGroup("IDLE_SEXY_C")
  LoadAnimationGroup("INDgateC")
  LoadAnimationGroup("JPhoto")
  LoadAnimationGroup("JunkCarA")
  LoadAnimationGroup("JV_Asylum")
  LoadAnimationGroup("J_Damon")
  LoadAnimationGroup("J_Grappler")
  LoadAnimationGroup("J_Melee")
  LoadAnimationGroup("J_Ranged")
  LoadAnimationGroup("J_Striker")
  LoadAnimationGroup("KISS1")
  LoadAnimationGroup("KISS2")
  LoadAnimationGroup("KISS3")
  LoadAnimationGroup("KISS4")
  LoadAnimationGroup("KissAdult")
  LoadAnimationGroup("KISSB")
  LoadAnimationGroup("KISSF")
  LoadAnimationGroup("LckrGymA")
  LoadAnimationGroup("LE_Officer")
  LoadAnimationGroup("LE_Orderly")
  LoadAnimationGroup("Mermaid")
  LoadAnimationGroup("MG_Craps")
  LoadAnimationGroup("MINIBIKE")
  LoadAnimationGroup("MINICHEM")
  LoadAnimationGroup("MINIDARTS")
  LoadAnimationGroup("MINIDunk")
  LoadAnimationGroup("MINIGraf")
  LoadAnimationGroup("MINIHACKY")
  LoadAnimationGroup("MINI_Arm")
  LoadAnimationGroup("MINI_BallToss")
  LoadAnimationGroup("MINI_Lock")
  LoadAnimationGroup("MINI_React")
  LoadAnimationGroup("Miracle")
  LoadAnimationGroup("MOWER")
  LoadAnimationGroup("MPostA")
  LoadAnimationGroup("N2B Dishonerable")
  LoadAnimationGroup("Nemesis")
  LoadAnimationGroup("nerdBar1")
  LoadAnimationGroup("NIS_0_00A")
  LoadAnimationGroup("NIS_1_02")
  LoadAnimationGroup("NIS_1_02B")
  LoadAnimationGroup("NIS_1_03")
  LoadAnimationGroup("NIS_1_04")
  LoadAnimationGroup("NIS_1_05")
  LoadAnimationGroup("NIS_1_07")
  LoadAnimationGroup("NIS_1_08_1")
  LoadAnimationGroup("NIS_1_09")
  LoadAnimationGroup("NIS_1_11")
  LoadAnimationGroup("NIS_2_01")
  LoadAnimationGroup("NIS_2_03")
  LoadAnimationGroup("NIS_2_04")
  LoadAnimationGroup("NIS_2_06_1")
  LoadAnimationGroup("NIS_2_B")
  LoadAnimationGroup("NIS_2_S04")
  LoadAnimationGroup("NIS_3_01")
  LoadAnimationGroup("NIS_3_02")
  LoadAnimationGroup("NIS_3_04")
  LoadAnimationGroup("NIS_3_05")
  LoadAnimationGroup("NIS_3_06")
  LoadAnimationGroup("NIS_3_08")
  LoadAnimationGroup("NIS_3_11")
  LoadAnimationGroup("NIS_3_B")
  LoadAnimationGroup("NIS_3_G3")
  LoadAnimationGroup("NIS_3_R09_D")
  LoadAnimationGroup("NIS_3_R09_G")
  LoadAnimationGroup("NIS_3_R09_J")
  LoadAnimationGroup("NIS_3_R09_N")
  LoadAnimationGroup("NIS_3_R09_P")
  LoadAnimationGroup("NIS_3_S03")
  LoadAnimationGroup("NIS_3_S03_B")
  LoadAnimationGroup("NIS_3_S11")
  LoadAnimationGroup("NIS_4_01")
  LoadAnimationGroup("NIS_4_05")
  LoadAnimationGroup("NIS_4_06")
  LoadAnimationGroup("NIS_4_B2")
  LoadAnimationGroup("NIS_5_01")
  LoadAnimationGroup("NIS_5_02")
  LoadAnimationGroup("NIS_5_03")
  LoadAnimationGroup("NIS_5_04")
  LoadAnimationGroup("NIS_5_05")
  LoadAnimationGroup("NIS_5_07")
  LoadAnimationGroup("NIS_5_G5")
  LoadAnimationGroup("NIS_6_02")
  LoadAnimationGroup("NIS_6_03")
  LoadAnimationGroup("NLock01A")
  LoadAnimationGroup("NPC_Adult")
  LoadAnimationGroup("NPC_AggroTaunt")
  LoadAnimationGroup("NPC_Chat_1")
  LoadAnimationGroup("NPC_Chat_2")
  LoadAnimationGroup("NPC_Chat_F")
  LoadAnimationGroup("NPC_Cheering")
  LoadAnimationGroup("NPC_Love")
  LoadAnimationGroup("NPC_Mascot")
  LoadAnimationGroup("NPC_NeedsResolving")
  LoadAnimationGroup("NPC_Principal")
  LoadAnimationGroup("NPC_Shopping")
  LoadAnimationGroup("NPC_Spectator")
  LoadAnimationGroup("N_Ranged")
  LoadAnimationGroup("N_Striker")
  LoadAnimationGroup("N_Striker_A")
  LoadAnimationGroup("N_Striker_B")
  LoadAnimationGroup("ObsDoor")
  LoadAnimationGroup("OBSMotor")
  LoadAnimationGroup("ObsPtf_1")
  LoadAnimationGroup("ObsPtf_2")
  LoadAnimationGroup("Pageant")
  LoadAnimationGroup("PedCoaster")
  LoadAnimationGroup("Player_Tired")
  LoadAnimationGroup("Player_VTired")
  LoadAnimationGroup("POI_Booktease")
  LoadAnimationGroup("POI_Cafeteria")
  LoadAnimationGroup("POI_ChLead")
  LoadAnimationGroup("POI_Gen")
  LoadAnimationGroup("POI_Smoking")
  LoadAnimationGroup("POI_Telloff")
  LoadAnimationGroup("POI_WarmHands")
  LoadAnimationGroup("POI_Worker")
  LoadAnimationGroup("PortaPoo")
  LoadAnimationGroup("PrepDoor")
  LoadAnimationGroup("PunchBag")
  LoadAnimationGroup("pxHoop")
  LoadAnimationGroup("pxLad10M")
  LoadAnimationGroup("Px_Arcade")
  LoadAnimationGroup("Px_Bed")
  LoadAnimationGroup("Px_Fountain")
  LoadAnimationGroup("Px_Garb")
  LoadAnimationGroup("Px_Gen")
  LoadAnimationGroup("Px_Ladr")
  LoadAnimationGroup("Px_Rail")
  LoadAnimationGroup("Px_RedButton")
  LoadAnimationGroup("Px_Sink")
  LoadAnimationGroup("Px_Tlet")
  LoadAnimationGroup("Px_Tree")
  LoadAnimationGroup("P_Grappler")
  LoadAnimationGroup("P_Striker")
  LoadAnimationGroup("QPed")
  LoadAnimationGroup("RAT_PED")
  LoadAnimationGroup("Reeper")
  LoadAnimationGroup("RMailbox")
  LoadAnimationGroup("Russell")
  LoadAnimationGroup("Russell_PBomb")
  LoadAnimationGroup("Santa_Lap")
  LoadAnimationGroup("SAUTH_A")
  LoadAnimationGroup("SAUTH_F")
  LoadAnimationGroup("SAUTH_U")
  LoadAnimationGroup("SAUTH_X")
  LoadAnimationGroup("SBarels1")
  LoadAnimationGroup("SBULL_A")
  LoadAnimationGroup("SBULL_F")
  LoadAnimationGroup("SBULL_S")
  LoadAnimationGroup("SBULL_U")
  LoadAnimationGroup("SBULL_X")
  LoadAnimationGroup("Scaffold")
  LoadAnimationGroup("SCbanpil")
  LoadAnimationGroup("SCBell")
  LoadAnimationGroup("SCDoor")
  LoadAnimationGroup("ScGate")
  LoadAnimationGroup("SCgrdoor")
  LoadAnimationGroup("scObsDr")
  LoadAnimationGroup("ScoolBus")
  LoadAnimationGroup("SCOOTER")
  LoadAnimationGroup("SecDoorL")
  LoadAnimationGroup("SecDoorR")
  LoadAnimationGroup("Sedan")
  LoadAnimationGroup("SFAT_A")
  LoadAnimationGroup("SFAT_F")
  LoadAnimationGroup("SFAT_I")
  LoadAnimationGroup("SFAT_S")
  LoadAnimationGroup("SGEN_A")
  LoadAnimationGroup("SGEN_F")
  LoadAnimationGroup("SGEN_I")
  LoadAnimationGroup("SGEN_S")
  LoadAnimationGroup("SGIRLS")
  LoadAnimationGroup("SGIRL_A")
  LoadAnimationGroup("SGIRL_D")
  LoadAnimationGroup("SGIRL_F")
  LoadAnimationGroup("SGIRL_S")
  LoadAnimationGroup("SGTargB")
  LoadAnimationGroup("ShopBike")
  LoadAnimationGroup("SHUMIL_01")
  LoadAnimationGroup("SHWR")
  LoadAnimationGroup("SIAMESE")
  LoadAnimationGroup("Siamese2")
  LoadAnimationGroup("Sitting_Boys")
  LoadAnimationGroup("SK8Board")
  LoadAnimationGroup("Skateboard")
  LoadAnimationGroup("SkeltonMan")
  LoadAnimationGroup("Slingsh")
  LoadAnimationGroup("SNERD_A")
  LoadAnimationGroup("SNERD_F")
  LoadAnimationGroup("SNERD_I")
  LoadAnimationGroup("SNERD_S")
  LoadAnimationGroup("SNGIRLS")
  LoadAnimationGroup("SNGIRL_D")
  LoadAnimationGroup("SNGIRL_F")
  LoadAnimationGroup("SnowBlob")
  LoadAnimationGroup("SnowMND")
  LoadAnimationGroup("SnowWall")
  LoadAnimationGroup("SOLD_A")
  LoadAnimationGroup("SOLD_F")
  LoadAnimationGroup("SOLD_I")
  LoadAnimationGroup("SOLD_S")
  LoadAnimationGroup("SPLAY_A")
  LoadAnimationGroup("SPLAY_B")
  LoadAnimationGroup("SprayCan")
  LoadAnimationGroup("SpudG")
  LoadAnimationGroup("Squid")
  LoadAnimationGroup("StalDoor")
  LoadAnimationGroup("Straf_Dout")
  LoadAnimationGroup("Straf_Fat")
  LoadAnimationGroup("Straf_Female")
  LoadAnimationGroup("Straf_Male")
  LoadAnimationGroup("Straf_Nerd")
  LoadAnimationGroup("Straf_Prep")
  LoadAnimationGroup("Straf_Savage")
  LoadAnimationGroup("Straf_Wrest")
  LoadAnimationGroup("SUV")
  LoadAnimationGroup("TadGates")
  LoadAnimationGroup("TadShud")
  LoadAnimationGroup("TE_Female")
  LoadAnimationGroup("TGKFlag")
  LoadAnimationGroup("ToolBox")
  LoadAnimationGroup("TrackSW")
  LoadAnimationGroup("TreeFall")
  LoadAnimationGroup("Truck")
  LoadAnimationGroup("Try_Clothes")
  LoadAnimationGroup("TSGate")
  LoadAnimationGroup("UBO")
  LoadAnimationGroup("Umbrella")
  LoadAnimationGroup("VDMilo")
  LoadAnimationGroup("VFlytrap")
  LoadAnimationGroup("V_Bike")
  LoadAnimationGroup("V_Bike_Races")
  LoadAnimationGroup("V_COPBIKE")
  LoadAnimationGroup("V_SCOOTER")
  LoadAnimationGroup("WBalloon")
  LoadAnimationGroup("WeaponUnlock")
  LoadAnimationGroup("Ween_Fem")
  LoadAnimationGroup("WHCrane")
  LoadAnimationGroup("WheelBrl")
  LoadAnimationGroup("WPCannon")
  LoadAnimationGroup("WPSheldB")
  LoadAnimationGroup("WPShield")
  LoadAnimationGroup("WPTurret")
  LoadAnimationGroup("W_BBall")
  LoadAnimationGroup("W_BBallBat")
  LoadAnimationGroup("W_BRocket")
  LoadAnimationGroup("W_Camera")
  LoadAnimationGroup("W_CherryBomb")
  LoadAnimationGroup("W_CHShield")
  LoadAnimationGroup("W_FlashLight")
  LoadAnimationGroup("W_Fountain")
  LoadAnimationGroup("W_Itchpowder")
  LoadAnimationGroup("W_JBroom")
  LoadAnimationGroup("W_Lid")
  LoadAnimationGroup("W_PooBag")
  LoadAnimationGroup("W_PRANK")
  LoadAnimationGroup("W_Slingshot")
  LoadAnimationGroup("W_Snowball")
  LoadAnimationGroup("W_snowshwl")
  LoadAnimationGroup("W_SprayCan")
  LoadAnimationGroup("W_SpudGun")
  LoadAnimationGroup("W_Stick")
  LoadAnimationGroup("W_Thrown")
  LoadAnimationGroup("W_wtrpipe")
  LoadAnimationGroup("x_cas1")
  LoadAnimationGroup("x_cas2")
  LoadAnimationGroup("x_cas3")
  LoadAnimationGroup("x_ccane")
  LoadAnimationGroup("X_Chair")
  LoadAnimationGroup("x_cndl")
  LoadAnimationGroup("x_sleigh")
  LoadAnimationGroup("x_tedy")
  collectgarbage()
end

Why does it crash?
« Last Edit: September 23, 2015, 01:49:18 AM by SWEGTA »

Offline SWEGTA

  • Da Forum Luffs Me!
  • *****
  • Posts: 6,422
  • Gender: Male
  • Swee Gee Tee Ayy
    • View Profile
    • Bully & GTA videos
Re: Help me out
« Reply #1 on: September 23, 2015, 01:51:37 AM »
Not sure, but I edited your post.

Try to use the code feature more, so that people don't have to spend half a minute scrolling through a gigantic post.

Offline UltimateGamer9

  • Full Member
  • ***
  • Posts: 190
  • Gender: Male
    • View Profile
Re: Help me out
« Reply #2 on: September 23, 2015, 02:16:16 AM »
Not sure, but I edited your post.

Try to use the code feature more, so that people don't have to spend half a minute scrolling through a gigantic post.
Oh ok thanks. I'll do that next time.

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: Help me out
« Reply #3 on: September 23, 2015, 07:33:32 AM »
Could you be more specific on what happens when you try to run the script?

Offline UltimateGamer9

  • Full Member
  • ***
  • Posts: 190
  • Gender: Male
    • View Profile
Re: Help me out
« Reply #4 on: September 23, 2015, 08:14:43 AM »
Could you be more specific on what happens when you try to run the script?
Im making a custom mission it crashes when I start it.

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: Help me out
« Reply #5 on: September 23, 2015, 08:18:56 PM »
Try to put the call to AreaTransitionXYZ at the top of the MissionSetup function instead.

Offline Allucination

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: Help me out
« Reply #6 on: September 24, 2015, 08:25:49 AM »
Can you be more specific? As in when it crashes? In the middle of the script, at the start or what?

Offline UltimateGamer9

  • Full Member
  • ***
  • Posts: 190
  • Gender: Male
    • View Profile
Re: Help me out
« Reply #7 on: September 24, 2015, 08:51:54 AM »
Can you be more specific? As in when it crashes? In the middle of the script, at the start or what?
It crashes at the start. Why don't you use that script? If you don't understand or believe.

Offline Allucination

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: Help me out
« Reply #8 on: September 24, 2015, 09:02:48 AM »
Can you be more specific? As in when it crashes? In the middle of the script, at the start or what?
It crashes at the start. Why don't you use that script? If you don't understand or believe.
I'm not even going to argue with you. You are always so rude to me (On youtube).

Offline UltimateGamer9

  • Full Member
  • ***
  • Posts: 190
  • Gender: Male
    • View Profile
Re: Help me out
« Reply #9 on: September 24, 2015, 09:24:03 AM »
Can you be more specific? As in when it crashes? In the middle of the script, at the start or what?
It crashes at the start. Why don't you use that script? If you don't understand or believe.
I'm not even going to argue with you. You are always so rude to me (On youtube).
Look I'm sorry. I thought you were AfterLife.

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: Help me out
« Reply #10 on: September 24, 2015, 11:56:15 AM »
Stop fucking quoting! Just look up and we know what messages you're replying to!

Offline AlphaTech

  • LostInSpace
  • Sr. Member
  • ***
  • Posts: 758
  • Gender: Male
  • The name's AlphaTECH, whatca need help with?! :)
    • View Profile
Re: Help me out
« Reply #11 on: September 24, 2015, 06:28:03 PM »
Stop fucking quoting! Just look up and we know what messages you're replying to!

Lol Y u mad bro?
( ͡° ͜ʖ ͡°)

Offline Unknownsoldier

  • Hero Member
  • ****
  • Posts: 2,773
    • View Profile
Re: Help me out
« Reply #12 on: September 24, 2015, 06:58:03 PM »
Can you be more specific? As in when it crashes? In the middle of the script, at the start or what?
It crashes at the start. Why don't you use that script? If you don't understand or believe.
I'm not even going to argue with you. You are always so rude to me (On youtube).
Look I'm sorry. I thought you were AfterLife.
no dude its josh lol

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: Help me out
« Reply #13 on: September 24, 2015, 07:03:24 PM »
Can you be more specific? As in when it crashes? In the middle of the script, at the start or what?
It crashes at the start. Why don't you use that script? If you don't understand or believe.
I'm not even going to argue with you. You are always so rude to me (On youtube).
Look I'm sorry. I thought you were AfterLife.
no dude its josh lol

Oh. kk

Stop fucking quoting! Just look up and we know what messages you're replying to!

Lol Y u mad bro?
( ͡° ͜ʖ ͡°)


nah i'm good, thanks for asking tho.

Offline Unknownsoldier

  • Hero Member
  • ****
  • Posts: 2,773
    • View Profile
Re: Help me out
« Reply #14 on: September 24, 2015, 07:04:35 PM »
Can you be more specific? As in when it crashes? In the middle of the script, at the start or what?
It crashes at the start. Why don't you use that script? If you don't understand or believe.
I'm not even going to argue with you. You are always so rude to me (On youtube).
Look I'm sorry. I thought you were AfterLife.
no dude its josh lol

Oh. kk

Stop fucking quoting! Just look up and we know what messages you're replying to!

Lol Y u mad bro?
( ͡° ͜ʖ ͡°)


nah i'm good, thanks for asking tho.
oh ok thats good. im glad ur fine.  ͜ʖ ͡°)