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


Author Topic: Mission Scripting Tutorial  (Read 8879 times)

0 Members and 1 Guest are viewing this topic.

Offline AlphaTech

  • LostInSpace
  • Sr. Member
  • ***
  • Posts: 758
  • Gender: Male
  • The name's AlphaTECH, whatca need help with?! :)
    • View Profile
Mission Scripting Tutorial
« on: July 14, 2015, 05:10:23 PM »
This is a new mission I created where you have to rescue Gary from the dropouts in bullworth town. The mission is just in progress and will be completed and released soon. The mission is just for testing purposes and is actually a mission tutorial for anyone to test out and try. If you need help with anything send me a message. I am available almost everyday so when you need to ask me something just ask away!

I am on the verge of completing it since I'm back home from my vacation. It was awesome, but anyway I am good to be back in the modding business completely. The mission is the same mission I posted in another thread it will feature similarities from The Setup and some other missions using tether's or enemies and all sorts of things.

 This mission is just a testing mission which is why I am releasing the scripts for it so early. My other missions are still under development and will probably be released soon.

Well let's get down to business then :).

Code: [Select]
--This is for testing purposes only take what you want and try to create your own mission have fun and KEEP KIFGUNKC MODDING YOU IHBCT!!!! ;D ;D

--Please make sure that if you have any questions message me.

This function is mostly always needed when trying to make a mission you can also use main as a way to run mission's it may be easier to use but it's up to you.
MissionSetup = function()

function MissionSetup()  (Can'T be scripted without the (=) only if (function) is behind MissionSetup, than you can add the parenthese's right next to MissionSetup).
(Daboss found this method out can be good for making custom missions so they don't look like Rockstar Ripoff's I am laughing out loud at your hysterical statement! .  :laugh:

Anything your putting into MissionSetup always has to HAVE AN (END) without this the game will crash because nothing is defining where the script is supposed to stop.

MissionSetup should only have a few code's being used here you are supposed to make your own running script's after this one. I only used a lot of code because of course this is an tutorial.

PlayerSetHealth(800) (We all know set's the player's health)
AreaTransitionXYZ(0, 477.5798, -107.3748, 16.6911) (I suggest always using this so the Player has a placement to transition to.)

(Don't forget about your Musix of course  :(,
    SoundPlayInteractiveStream("MS_BikeFunLow.rsm", 0.5) (This is the (Low Stream) play's when your not interacting with anything scripted to interact with like bikes or enemies.)
    SoundSetMidIntensityStream("MS_BikeFunMid.rsm", 0.60000002384186) (This is the (Mid Stream) usually play's when riding a bike.)
   
SoundSetHighIntensityStream("MS_BikeFunHigh.rsm", 0.60000002384186) (This is the (High Stream) usually play's when an enemy is locked onto you.)

 Set's the Camera to be [                                             ] instead of [                                ] CameraSetWideScreen (true,false) (Always case sensitive use with caution!) (They should always be lower cased.)
 CameraSetWidescreen(true)
 
PlayerSetControl(0) (Set's wether the player has any type of control over the (Player), the lockon button still work's though LMAO funny Rockstar.
 

  TextPrintString("BY : LostInSpace Aka AlphaTECH", 4, 1) (Set's the text on screen, Wait should be used so the script doesn't display the text for a  milisecond.)
  Wait(4000)
  TextPrintString("Codes Written By :  LostInSpace", 4, 1)
  Wait(4000)
  TextPrintString("Based On Works from Daboss", 4, 1)
  Wait(2000)
  TextPrintString("This mission is for testing purposes only.", 4, 1)
  Wait(4000)
 

  AreaOverridePopulation(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) (Override's the normal populous of the Map (0) can be changed to any Character(S).)

  AreaClearAllPeds() (Clear's all the ped's on Map (0).)
 
      PedSetUniqueModelStatus(2, -1) -- Zoe (Set's if the model is being used in free roam or not kind of like Ide.img, -1 means they don't spawn in trigger, 1 means they spawn in trigger.) (Can be setup to 40 for one character,

PedSetUniqueModelStatus(PED,40) (Let the Zombie BATTLE COMINCE!!)

A list of all the unique model's, PedFindAmbientPedOfModelID(model id/model index, see default.ide) can be used to check if a ped is spawned then you can use the free roam ped as your Enemy instead of spawning them.
          PedSetUniqueModelStatus(3, -1) -- Beatrice
  PedSetUniqueModelStatus(4, -1) -- Algernon
  PedSetUniqueModelStatus(5, -1) -- Fatty
  PedSetUniqueModelStatus(6, -1) -- Melvin
  PedSetUniqueModelStatus(7, -1) -- Thad
  PedSetUniqueModelStatus(8, -1) -- Bucky
  PedSetUniqueModelStatus(9, -1) -- Cornelius
  PedSetUniqueModelStatus(10, -1) -- Earnest
  PedSetUniqueModelStatus(11, -1) -- Donald
  PedSetUniqueModelStatus(12, -1) -- Damon
  PedSetUniqueModelStatus(13, -1) -- Kirby
  PedSetUniqueModelStatus(14, -1) -- Mandy
  PedSetUniqueModelStatus(15, -1) -- Dan
  PedSetUniqueModelStatus(16, -1) -- Luis
  PedSetUniqueModelStatus(17, -1) -- Casey
  PedSetUniqueModelStatus(18, -1) -- Bo
  PedSetUniqueModelStatus(19, -1) -- Ted
  PedSetUniqueModelStatus(20, -1) -- Juri
  PedSetUniqueModelStatus(21, -1) -- Peanut (greasers)
  PedSetUniqueModelStatus(22, -1) -- Hal (greasers)
  PedSetUniqueModelStatus(23, -1) -- Johnny (greasers)
  PedSetUniqueModelStatus(24, -1) -- Lefty (greasers)
  PedSetUniqueModelStatus(25, -1) -- Lola (greasers)
  PedSetUniqueModelStatus(26, -1) -- Lucky (greasers)
  PedSetUniqueModelStatus(27, -1) -- Vance (greasers)
  PedSetUniqueModelStatus(28, -1) -- Ricky (greasers)
  PedSetUniqueModelStatus(29, -1) -- Norton (greasers)
  PedSetUniqueModelStatus(30, -1) -- Gord
  PedSetUniqueModelStatus(31, -1) -- Tad
  PedSetUniqueModelStatus(32, -1) -- Chad
  PedSetUniqueModelStatus(33, -1) -- Bif
  PedSetUniqueModelStatus(34, -1) -- Justin
  PedSetUniqueModelStatus(35, -1) -- Bryce
  PedSetUniqueModelStatus(36, -1) -- Bryce (boxing)
  PedSetUniqueModelStatus(37, -1) -- Darby
  PedSetUniqueModelStatus(38, -1) -- Pinky
  PedSetUniqueModelStatus(40, -1) -- Parker
  PedSetUniqueModelStatus(39, -1) -- Angie
  PedSetUniqueModelStatus(41, -1) -- Jerry
  PedSetUniqueModelStatus(42, -1) -- Otto
  PedSetUniqueModelStatus(43, -1) -- Leon
  PedSetUniqueModelStatus(44, -1) -- Duncan
  PedSetUniqueModelStatus(45, -1) -- Henry
  PedSetUniqueModelStatus(46, -1) -- Gurney
  PedSetUniqueModelStatus(47, -1) -- Omar
  PedSetUniqueModelStatus(48, -1) -- Zoe (alternate outfit?)
  PedSetUniqueModelStatus(49, -1) -- Max (prefect)
  PedSetUniqueModelStatus(50, -1) -- Seth (prefect)
  PedSetUniqueModelStatus(51, -1) -- Edward (prefect)
  PedSetUniqueModelStatus(52, -1) -- Karl (prefect leader)
  PedSetUniqueModelStatus(53, -1) -- Theo (Orderly)
  PedSetUniqueModelStatus(54, -1) -- Miss Peabody (HallMonitor)
  PedSetUniqueModelStatus(55, -1) -- Mr Burton (Gym Teacher)
  PedSetUniqueModelStatus(56, -1) -- Mr Luntz (Janitor)
  PedSetUniqueModelStatus(57, -1) -- Mr Galloway (English Teacher)
  PedSetUniqueModelStatus(58, -1) -- Edna (Cafeteria Cook)
  PedSetUniqueModelStatus(59, -1) -- Miss Winston (Secretary)
  PedSetUniqueModelStatus(60, -1) -- Mrs McRae (Nurse)
  PedSetUniqueModelStatus(61, -1) -- Mr Hattrick (Math Teacher)
  PedSetUniqueModelStatus(62, -1) -- Mrs Carvin (Librarian)
  PedSetUniqueModelStatus(63, -1) -- Ms Phillips (Art Teacher)
  PedSetUniqueModelStatus(64, -1) -- Mr Slawter (Biology Teacher)
  PedSetUniqueModelStatus(65, -1) -- Dr Crabblesnitch (Principal)
  PedSetUniqueModelStatus(66, -1) -- Sheldon (student) (Little kid)
  PedSetUniqueModelStatus(67, -1) -- Christy (student)
  PedSetUniqueModelStatus(68, -1) -- Gloria (student) (Little kid)
  PedSetUniqueModelStatus(69, -1) -- Pedro (student) (Little kid)
  PedSetUniqueModelStatus(70, -1) -- Constantinos (student)
  PedSetUniqueModelStatus(71, -1) -- Ray (Student) (fat kid)
  PedSetUniqueModelStatus(72, -1) -- Ivan (student)
  PedSetUniqueModelStatus(73, -1) -- Trevor (student)
  PedSetUniqueModelStatus(74, -1) -- Eunice (student) (fat girl)
  PedSetUniqueModelStatus(75, -1) -- Russell (Bully) (freeroam model)
  PedSetUniqueModelStatus(76, -1) -- Dr Bambillo (shop owner) (TownsPerson)
  PedSetUniqueModelStatus(77, -1) -- Mr Sullivan  (shop owner) (TownsPerson)
  PedSetUniqueModelStatus(78, -1) -- Ms Kopke  (shop owner) (TownsPerson)
  PedSetUniqueModelStatus(79, -1) -- Ms Rushinski  (shop owner) (TownsPerson)
  PedSetUniqueModelStatus(80, -1) -- Ms Isaacs (TownsPerson)
  PedSetUniqueModelStatus(81, -1) -- Bethany Jones (TownsPerson)
  PedSetUniqueModelStatus(82, -1) -- ORourke (fireman) (TownsPerson)
  PedSetUniqueModelStatus(83, -1) -- Officer Monson (Cop) (TownsPerson)
  PedSetUniqueModelStatus(84, -1) -- Zack Owens (Comic Store Owner) (TownsPerson)
  PedSetUniqueModelStatus(85, -1) -- Trent (Bully)
  PedSetUniqueModelStatus(86, -1) -- Tobias Mason (Bike Shop Owner) (TownsPerson)
  PedSetUniqueModelStatus(87, -1) -- Mr Grant (Hobo)
  PedSetUniqueModelStatus(88, -1) -- Mascot (Jocks)
  PedSetUniqueModelStatus(89, -1) -- Mr Oh (Grocery Store Owner) (TownsPerson)
  PedSetUniqueModelStatus(90, -1) -- Christy (winter) (student)
  PedSetUniqueModelStatus(91, -1) -- Edgar (Dropouts Leader)
  PedSetUniqueModelStatus(92, -1) -- Luis (Wrestling) (Jocks)
  PedSetUniqueModelStatus(93, -1) -- Mandy (winter) (Jocks)
  PedSetUniqueModelStatus(94, -1) -- Pinky (winter) (Preppy)
  PedSetUniqueModelStatus(95, -1) -- Beatrice (winter) (Nerds)
  PedSetUniqueModelStatus(96, -1) -- Lola (winter) (Greasers)
  PedSetUniqueModelStatus(97, -1) -- Officer Williams (Cop) (TownsPerson)
  PedSetUniqueModelStatus(98, -1) -- Jimmy (Wrestling) (Player)
  PedSetUniqueModelStatus(99, -1) -- Davis (Bully)
  PedSetUniqueModelStatus(100, -1) -- Mr Breckindale (TownsPerson)
  PedSetUniqueModelStatus(101, -1) -- Mr Doolin (TownsPerson)
  PedSetUniqueModelStatus(102, -1) -- Troy (Bully)
  PedSetUniqueModelStatus(103, -1) -- Nate (Fire Owner) (TownsPerson)
  PedSetUniqueModelStatus(104, -1) -- Mr Carmichael (Shop Owner)
  PedSetUniqueModelStatus(105, -1) -- Nicky Charles (Shop Owner)
  PedSetUniqueModelStatus(106, -1) -- Mr Watts (Chemistry Teacher)
  PedSetUniqueModelStatus(107, -1) -- Miss Abby (Shop Owner)
  PedSetUniqueModelStatus(108, -1) -- Mihailovich (Shop Owner)
  PedSetUniqueModelStatus(109, -1) -- Kirby (Football Uniform)
  PedSetUniqueModelStatus(110, -1) -- Ted (Football Uniform)
  PedSetUniqueModelStatus(111, -1) -- Dan (Football Uniform)
  PedSetUniqueModelStatus(112, -1) -- Damon (Football Uniform)
  PedSetUniqueModelStatus(113, -1) -- Freeley (Carnival)
  PedSetUniqueModelStatus(114, -1) -- Dorsey (Carnival)
  PedSetUniqueModelStatus(115, -1) -- Hector (Carnival Midget) (DunkTank?)
  PedSetUniqueModelStatus(116, -1) -- Osbourne (Shop Owner) (TownsPerson)
  PedSetUniqueModelStatus(117, -1) -- Chad (Boxing) (Preppy)
  PedSetUniqueModelStatus(118, -1) -- Justin (Boxing) (Preppy)
  PedSetUniqueModelStatus(119, -1) -- Parker (Boxing) (Preppy)
  PedSetUniqueModelStatus(120, -1) -- Maria Theresa (Barber) (Rich Area)
  PedSetUniqueModelStatus(121, -1) -- Bob (Generic Wrestler) (Bully)
  PedSetUniqueModelStatus(122, -1) -- Fatty (Wrestling) (Nerds)
  PedSetUniqueModelStatus(123, -1) -- Chuck (Shop Owner) (TownsPerson)
  PedSetUniqueModelStatus(124, -1) -- Ian (Shop Owner) (TownsPerson)
  PedSetUniqueModelStatus(125, -1) -- Fenwick (Asylum Patient) (TownsPerson)
  PedSetUniqueModelStatus(126, -1) -- Neil (Autoshop Teacher)
  PedSetUniqueModelStatus(127, -1) -- Mr Svenson (Mailman)
  PedSetUniqueModelStatus(128, -1) -- Denny (Tattooist)
  PedSetUniqueModelStatus(129, -1) -- Mr Galloway (Asylum Model) (English Teacher)
  PedSetUniqueModelStatus(130, -1) -- Gary (Final BOSS) (Student)
  PedSetUniqueModelStatus(131, -1) -- Krakauer (Shop Owner) (TownsPerson)
  PedSetUniqueModelStatus(132, -1) -- Mr Moratti (Barber) (Poor Area)
  PedSetUniqueModelStatus(133, -1) -- Bif (Boxing) (Preppy)
  PedSetUniqueModelStatus(134, -1) -- Petey (student)
  PedSetUniqueModelStatus(135, -1) -- Mr Smith (TownsPerson)
  PedSetUniqueModelStatus(136, -1) -- Rat
  PedSetUniqueModelStatus(137, -1) -- Melody (Little Kid)
  PedSetUniqueModelStatus(138, -1) -- Karen (Little Kid)
  PedSetUniqueModelStatus(139, -1) -- Gordon (Student)
  PedSetUniqueModelStatus(140, -1) -- Brandy (Midget)
  PedSetUniqueModelStatus(141, -1) -- Pitbull 1
  PedSetUniqueModelStatus(142, -1) -- Lance (Student)
  PedSetUniqueModelStatus(143, -1) -- Crystal (Carnival Worker)
  PedSetUniqueModelStatus(144, -1) -- Mr Martin (TownsPerson)
  PedSetUniqueModelStatus(145, -1) -- Ethan (Bully)
  PedSetUniqueModelStatus(146, -1) -- Wade (Bully)
  PedSetUniqueModelStatus(147, -1) -- Tom (Bully)
  PedSetUniqueModelStatus(148, -1) -- Mr Ramirez (TownsPerson)
  PedSetUniqueModelStatus(149, -1) -- Mr Huntingdon (TownsPerson)
  PedSetUniqueModelStatus(150, -1) -- Otto (Asylum) (Dropouts)
  PedSetUniqueModelStatus(151, -1) -- Mr Wiggins (History Teacher)
  PedSetUniqueModelStatus(152, -1) -- Floyd (TownsPerson)
  PedSetUniqueModelStatus(153, -1) -- Leon (Asylum) (Dropouts)
  PedSetUniqueModelStatus(154, -1) -- Henry (Asylum) (Dropouts)
  PedSetUniqueModelStatus(155, -1) -- Fatty (Chocolate) (Nerds)
  PedSetUniqueModelStatus(156, -1) -- Stan (Grocery Store Clerk) (TownsPerson)
  PedSetUniqueModelStatus(157, -1) -- Handy (Shop Owner) (TownsPerson)
  PedSetUniqueModelStatus(158, -1) -- Gregory (Orderly)
  PedSetUniqueModelStatus(159, -1) -- Pedro (Halloween) (Little Kid)
  PedSetUniqueModelStatus(160, -1) -- Gary (Halloween)
  PedSetUniqueModelStatus(161, -1) -- Lucky (Halloween) (Greasers)
  PedSetUniqueModelStatus(162, -1) -- Donald (Halloween) (Nerds)
  PedSetUniqueModelStatus(163, -1) -- Parker (Halloween) (Preppy)
  PedSetUniqueModelStatus(164, -1) -- Casey (Halloween) (Jocks)
  PedSetUniqueModelStatus(165, -1) -- Petey (Halloween) (Student)
  PedSetUniqueModelStatus(166, -1) -- Angie (Halloween) (Student)
  PedSetUniqueModelStatus(167, -1) -- Pinky (Halloween) (Preppy)
  PedSetUniqueModelStatus(168, -1) -- Damon (Halloween) (Jocks)
  PedSetUniqueModelStatus(169, -1) -- Gordon (Halloween) (Student)
  PedSetUniqueModelStatus(170, -1) -- Ivan (Halloween) (Bully)
  PedSetUniqueModelStatus(171, -1) -- Trevor (Halloween) (Student)
  PedSetUniqueModelStatus(172, -1) -- Bif (Boxing) (Beat up?) (Preppy)
  PedSetUniqueModelStatus(173, -1) -- Vance (Halloween) (Greasers)
  PedSetUniqueModelStatus(174, -1) -- Thad (Halloween) (Nerds)
  PedSetUniqueModelStatus(175, -1) -- Pinky (Winter) (Preppy)
  PedSetUniqueModelStatus(176, -1) -- Russell (Beat up) (Bully)
  PedSetUniqueModelStatus(177, -1) -- Tad (Winter) (Preppy)
  PedSetUniqueModelStatus(178, -1) -- Bryce (Winter) (Preppy)
  PedSetUniqueModelStatus(179, -1) -- Justin (Winter) (Preppy)
  PedSetUniqueModelStatus(480, -1) -- Angie (Cheerleader) (Student)
  PedSetUniqueModelStatus(181, -1) -- Christy (Cheerleader) (Student)
  PedSetUniqueModelStatus(182, -1) -- Pinky (Cheerleader) (Preppy)
  PedSetUniqueModelStatus(183, -1) -- Mr Buba (TownsPerson)
  PedSetUniqueModelStatus(184, -1) -- Mr Gordon (TownsPerson)
  PedSetUniqueModelStatus(185, -1) -- Mrs Lisburn (TownsPerson)
  PedSetUniqueModelStatus(186, -1) -- Fatty (Dungeon Master?) (Nerds)
  PedSetUniqueModelStatus(187, -1) -- Betty (Punk Barber) (TownsPerson)
  PedSetUniqueModelStatus(188, -1) -- Lightning (Fighting Midget) (Freakshow)
  PedSetUniqueModelStatus(189, -1) -- Zeke (Fighting Midget) (Freakshow)
  PedSetUniqueModelStatus(190, -1) -- Alfred (Skeleton Man) (Freakshow)
  PedSetUniqueModelStatus(191, -1) -- Paris (Bearded Fat Lady) (Freakshow)
  PedSetUniqueModelStatus(192, -1) -- Courtney (Mermaid) (Freakshow)
  PedSetUniqueModelStatus(193, -1) -- Delilah (Siamese Twin #2) (Freakshow)
  PedSetUniqueModelStatus(194, -1) -- Drew (Painted Man) (Freakshow)
  PedSetUniqueModelStatus(195, -1) -- Castillo (Worker) (TownsPerson)
  PedSetUniqueModelStatus(196, -1) -- Edgar (Gym) (Dropouts)
  PedSetUniqueModelStatus(197, -1) -- Gurney (Gym) (Dropouts)
  PedSetUniqueModelStatus(198, -1) -- Jerry (Gym) (Dropouts)
  PedSetUniqueModelStatus(199, -1) -- Leon (Gym) (Dropouts)
  PedSetUniqueModelStatus(200, -1) -- Hal (Gym) (Greasers)
  PedSetUniqueModelStatus(201, -1) -- Norton (Gym) (Greasers)
  PedSetUniqueModelStatus(202, -1) -- Peanut (Gym) (Greasers)
  PedSetUniqueModelStatus(203, -1) -- Vance (Gym) (Greasers)
  PedSetUniqueModelStatus(204, -1) -- Bo (Gym) (Jocks)
  PedSetUniqueModelStatus(205, -1) -- Damon (Gym) (Jocks)
  PedSetUniqueModelStatus(206, -1) -- Juri (Gym) (Jocks)
  PedSetUniqueModelStatus(207, -1) -- Kirby (Gym) (Jocks)
  PedSetUniqueModelStatus(208, -1) -- Algernon (Gym) (Nerds)
  PedSetUniqueModelStatus(209, -1) -- Bucky (Gym) (Nerds)
  PedSetUniqueModelStatus(210, -1) -- Thad (Gym) (Nerds)
  PedSetUniqueModelStatus(211, -1) -- Parker (Gym) (Preppy)
  PedSetUniqueModelStatus(212, -1) -- Justin (Gym) (Preppy)
  PedSetUniqueModelStatus(213, -1) -- Tad (Gym) (Preppy)
  PedSetUniqueModelStatus(214, -1) -- Gord (Gym) (Preppy)
  PedSetUniqueModelStatus(215, -1) -- Earnest (Not sure) (Nerds)
  PedSetUniqueModelStatus(216, -1) -- Ted (Not sure) (Jocks)
  PedSetUniqueModelStatus(217, -1) -- Johnny (Not sure) (Greasers)
  PedSetUniqueModelStatus(218, -1) -- Darby (Not sure) (Preppy)
  PedSetUniqueModelStatus(219, -1) -- Pitbull 2
  PedSetUniqueModelStatus(220, -1) -- Pitbull 3
  PedSetUniqueModelStatus(221, -1) -- Edna (Makeup) (Cafeteria Cook)
  PedSetUniqueModelStatus(222, -1) -- McInnis (Mill Worker)
  PedSetUniqueModelStatus(223, -1) -- Johnson (Dock Worker)
  PedSetUniqueModelStatus(224, -1) -- Thad (Pajamas) (Nerds)
  PedSetUniqueModelStatus(225, -1) -- Sheldon (Pajamas) (Student)
  PedSetUniqueModelStatus(226, -1) -- Pedro (Pajamas) (Student)
  PedSetUniqueModelStatus(227, -1) -- Ivan (Pajamas) (Student)
  PedSetUniqueModelStatus(228, -1) -- Trevor (Pajamas) (Student)
  PedSetUniqueModelStatus(229, -1) -- Mr Burton (Disguised) (Gym Teacher)
  PedSetUniqueModelStatus(230, -1) -- Mandy (Towel) (Jocks)
  PedSetUniqueModelStatus(231, -1) -- Bo (Football) (Jocks)
  PedSetUniqueModelStatus(232, -1) -- Casey (Football) (Jocks)
  PedSetUniqueModelStatus(233, -1) -- Punching bag
  PedSetUniqueModelStatus(234, -1) -- Officer Monson (Cop)
  PedSetUniqueModelStatus(235, -1) -- Constantinos (Winter) (Student)
  PedSetUniqueModelStatus(236, -1) -- McInnis (Construction Worker)
  PedSetUniqueModelStatus(237, -1) -- McInnis (Construction Worker) (Alternate?)
  PedSetUniqueModelStatus(238, -1) -- Officer Williams (Cop)
  PedSetUniqueModelStatus(239, -1) -- Bryce (Boxing) (Beat up 1) (Preppy)
  PedSetUniqueModelStatus(240, -1) -- Bryce (Boxing) (Beat up 2) (Preppy)
  PedSetUniqueModelStatus(241, -1) -- Chad (Boxing) (Beat up 1) (Preppy)
  PedSetUniqueModelStatus(242, -1) -- Chad (Boxing) (Beat up 2) (Preppy)
  PedSetUniqueModelStatus(243, -1) -- Bif (Boxing) (Beat up 2) (Preppy)
  PedSetUniqueModelStatus(244, -1) -- Justin (Boxing) (Beat up 1) (Preppy)
  PedSetUniqueModelStatus(245, -1) -- Justin (Boxing) (Beat up 2) (Preppy)
  PedSetUniqueModelStatus(246, -1) -- Parker (Boxing) (Beat up 1) (Preppy)
  PedSetUniqueModelStatus(247, -1) -- Parker (Boxing) (Beat up 2) (Preppy)
  PedSetUniqueModelStatus(248, -1) -- UNKNOWN NAME (Geography Teacher)
  PedSetUniqueModelStatus(249, -1) -- UNKNOWN NAME (Music Teacher)
  PedSetUniqueModelStatus(250, -1) -- UNKNOWN NAME (X-mas Elf 1) (Fake Santa Mission)
  PedSetUniqueModelStatus(251, -1) -- UNKNOWN NAME (X-mas Elf 2) (Fake Santa Mission)
  PedSetUniqueModelStatus(252, -1) -- Hobo Santa (X-mas) (Rudy)
  PedSetUniqueModelStatus(253, -1) -- UNKNOWN NAME (Fake Santa)
  PedSetUniqueModelStatus(254, -1) -- UNKNOWN NAME (Fake Santa) (Alternate Model?)
  PedSetUniqueModelStatus(255, -1) -- Petey (NutCracker Costume) (Student)
  PedSetUniqueModelStatus(256, -1) -- Eunice (Halloween) (Student)
  PedSetUniqueModelStatus(257, -1) -- Melody (Flower Costume) (Little Kid)
  PedSetUniqueModelStatus(258, -1) -- Pedro (Flower Costume) (Little Kid)
 
    CameraSetWidescreen(false)
      PlayerSetControl(1) (Set's the player's control from Stunned to Kill!) Toy Story Reference duh.  :sleep:
    CameraReset() (Reset's the camer's position.)
  CameraReturnToPlayer() (Return's the camera to the player.)

 
  DisablePunishmentSystem(true) (Disable's the Punishment system, (true,false) CASE KCUFGNI SENITIVE :D. :blank:)

Henry = PedCreateXYZ(46,503.7057,-112.5930,5.1166)--PedCreateXYZ(Ped,XYZ) (Create's a ped using a bracket from the scripts.)

PedSetInfiniteSprint(Henry, true)--PedSetInfiniteSprint(Ped,true/false)(Makes a ped not tired and tired simple.)

Blip600 = BlipAddXYZ(503.7057,-112.5930,5.1166,0)--BlipAddXYZ(Blip,XYZ) (Check my blips tutorial or Unkwon's don't be lazy.)

F_Firstinstance()
end

(All the animations ingame can be used for anything I suggest loading them in a completely different script so it wont take up space.)

LoadAllAnim = function()
  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")
  LoadAnimationGroup("1_03The Setup")
  LoadAnimationGroup("NIS_1_03")
  LoadAnimationGroup("POI_Smoking")
  LoadAnimationGroup("Hang_Talking")
  LoadAnimationGroup("GEN_Social")
  LoadAnimationGroup("Cheer_Cool2")
  LoadAnimationGroup("NPC_Adult")
  LoadAnimationGroup("TSGate")
  LoadAnimationGroup("SCgrdoor")
  LoadAnimationGroup("Sbarels1")
  LoadAnimationGroup("Area_School")
  LoadAnimationGroup("Px_Rail")
  LoadAnimationGroup("DO_Grap")
  LoadAnimationGroup("1_07_SaveBucky")
  LoadAnimationGroup("TSGate")
  LoadAnimationGroup("F_Nerds")
  LoadAnimationGroup("Hang_Jock")
  LoadAnimationGroup("NPC_AggroTaunt")
  LoadAnimationGroup("Hang_Talking")
  LoadAnimationGroup("1_07_Sk8Board")
  Load("Act/Conv/1_07.act")
  LoadActionTree("Act/Props/SBarels1.act")
  LoadActionTree("Act/Props/barrelLad.act")
  LoadActionTree("Act/Conv/1_03.act")
  LoadActionTree("Act/Anim/1_03_Davis.act")
end

F_Firstinstance = function()
  local x,y = 495,-112 (Created by Daboss, can be used to make a certain instance.)
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  BlipRemove(Blip600)
 
  PedMoveToXYZ(Henry,3,544.7044,-159.6918,10.9588)
  PedSetActionTree(Henry, "/Global/1_03_Davis", "Act/Anim/1_03_Davis.act")
 
 
  Blip601 = BlipAddXYZ(544.7044,-159.6918,10.9588,0)
  PedSetInvulnerable(Henry,true)
 
TextPrintString("Search for Gary, he has been kidnapped by the dropouts.",4,1)
--(Add how many enemies you want, if you want a table Daboss is your man.)
--PedSetPedToTypeAttitude(Henry, 13, 0)--(This is your peds agression, Table your agression also)
--PedAttackPlayer(Henry,3)--(Makes the peds attack from a distance.)(Table Also)
F_Secondinstance1()

Edgar = PedCreateXYZ(91,-745.8731,-610.8690,3.2883)
end

F_Secondinstance1 = function()
  local x,y = 503,-112
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
  BlipRemove(Blip601)
  Wait(2000)
TextPrintString("Their's Gurney, chase him!",4,1)
Blip602 = BlipAddXYZ(576.7057,-132.7739,5.8632,0)
F_Secondinstance()
end

F_Secondinstance = function()
  local x,y = 576,-132
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  BlipRemove(Blip602)
 
  Wait(3000)
  PlayerSetControl(0)

CameraFollowPed(Henry)
CameraSetWidescreen(true)
CameraSetFOV(75)

  TextPrintString("Gurney is getting away chase after him!",4,1)
 
  Wait(100)
  PedClimbLadder(Henry, 544.4423, -159.2737, 10.9604, 1)
  SoundStopCurrentSpeechEvent(Henry)
  SoundPlayScriptedSpeechEvent(Henry, "FIGHT_INITIATE", 0, "large")
  Wait(5800)
  PedStop(Henry)
  PedClearObjectives(Henry)
  Wait(3560)
  PedMoveToXYZ(Henry,3,532.4304,-159.0409,15.9288)
  SoundStopCurrentSpeechEvent(Henry)
  SoundPlayScriptedSpeechEvent(Henry, "FIGHT_INITIATE", 0, "large")
 
Gurney = PedCreateXYZ(45,576.7057,-132.7739,5.8632)
Jerry = PedCreateXYZ(41,576.7057+1,-132.7739+1,5.8632+1)
Duncan = PedCreateXYZ(44,576.7057+2,-132.7739+2,5.8632+3)
Leon = PedCreateXYZ(43,576.7057+3,-132.7739+3,5.8632+3)
--(Have characters aid Henry so it makes sense.)
Wait(4000)
TextPrintString("Defeat the other dropouts before chasing him!",4,1)

  PedSetPedToTypeAttitude(Gurney, 13, 0)
  PedSetPedToTypeAttitude(Jerry, 13, 0)
  PedSetPedToTypeAttitude(Duncan, 13, 0)
  PedSetPedToTypeAttitude(Leon, 13, 0)

CameraFollowPed(gPlayer)
PlayerSetControl(1)
CameraSetWidescreen(false)

PedAttackPlayer(Gurney, gPlayer,3)
PedAttackPlayer(Jerry, gPlayer,3)
PedAttackPlayer(Duncan, gPlayer,3)
PedAttackPlayer(Leon, gPlayer,3)
l_68_0 = false
end

F_Secondinstance2 = function()
if PedIsDead(Gurney) and PedIsDead(Jerry) and PedIsDead(Duncan) and PedIsDead(Leon) and l_68_0 == false then
TextPrintString("Go After Gurney follow him to the roof!",4,1)
Blip603 = BlipAddXYZ(544.2261, -158.2819, 16.3520,0)
Wait(4000)
PedSetWeapon(Henry,387)
PedSetHealth(Henry, 950)
l_68_0 = true
l_70_64 = false
end
end

F_ThirdInstance = function()
if l_70_64 == false and PedIsValid(Henry) and PedHasWeapon(Henry, 387) then
TextPrintString("Their he is, use your slingshot to attack!",4,1)
Wait(4000)
PedSetInvulnerable(Henry,true)
PedClearAllWeapons(gPlayer)
PedSetWeapon(gPlayer,-1)
Wait(2000)
PedSetWeapon(gPlayer,306)
PedSetPedToTypeAttitude(Henry, 13, 0)--(This is your peds agression, Table your agression also)
PedAttackPlayer(Henry,3)--(Makes the peds attack from a distance.)(Table Also)
BlipRemove(Blip603)
Wait(10000)
l_70_64 = true
l_17_6 = false
end
if PedHasWeapon(Henry, 387) and l_17_6 == false and PedIsValid(Henry) then
TextPrintString("No use he has a shield!",4,1)
Wait(4000)
Blip604 = BlipAddXYZ(544.2261, -158.2819, 16.3520, 0, 2)
PickupCreateXYZ(301, 544.2261, -158.2819, 16.3520, "CherryBomb")
TextPrintString("Pick up some firecrackers and throw them!",4,1)
Wait(6000)
l_17_6 = true
l_18_6 = false
end
if PedHasWeapon(gPlayer, 301) and l_18_6 == false then
BlipRemove(Blip604)
PedSetInvulnerable(Henry,false)
Wait(6000)
TextPrintString("Gurney : Your a smart ass aren't ya!",3,2)
Wait(4000)
TextPrintString("Gurney : I don't need shit to waste you school boy!",3,2)
Wait(4000)
PedStop(Henry)
PedClearObjectives(Henry)
PedAddPedToIgnoreList(Henry, gPlayer)
PedIgnoreAttacks(Henry, true)
PlayerSetControl(0)
CameraSetFOV(40)
CameraSetWidescreen(true)
CameraFollowPed(Henry)
Wait(4000)
l_18_6 = true
l_18_9 = false
end
end

F_HenryMiniBossFight = function()
if PedIsValid(Henry) and l_18_9 == false then
PedRemovePedFromIgnoreList(Henry, gPlayer)
PedIgnoreAttacks(Henry, false)
PedSetPedToTypeAttitude(Henry, 13, 0)--(This is your peds agression, Table your agression also)
PedAttackPlayer(Henry,3)--(Makes the peds attack from a distance.)(Table Also)
PedSetHealth(Henry, 850)
PedFaceObjectNow(Henry, gPlayer, 3)
SoundPlayScriptedSpeechEvent(Henry, "FIGHT_INITIATE", 0, "large")
TextPrintString("Defeat Gurney!", 4, 1)
PedShowHealthBar(Henry, true, "N_Gurney", true)
CreateThread("main2")
bHealthBarShown = true
Wait(2000)
CameraFollowPed(gPlayer)
PlayerSetControl(1)
CameraReset()
CameraReturnToPlayer()
CameraSetWidescreen(false)
PedSetActionTree(Henry, "/Global/P_Striker_B", "Act/Anim/P_Striker_B.act")

  PlayerSocialDisableActionAgainstPed(Henry, 35, true)
  PlayerSocialDisableActionAgainstPed(Henry, 23, true)
  PlayerSocialDisableActionAgainstPed(Henry, 30, true)
  PlayerSocialDisableActionAgainstPed(Henry, 29, true)
  PlayerSocialDisableActionAgainstPed(Henry, 28, true)
l_18_9 = true
l_20_0 = false
end
end

main2 = function()
repeat
SuperAttack()
Wait(0)
until not PedIsValid(Henry) or PedIsDead(Henry) or PedGetHealth(Henry) < 0
end

SuperAttack = function()
Wait(6000)
PedSetActionNode(Henry, "/Global/Nemesis/Offense/Short/Strikes", "Act/anim/Nemesis.act")
Wait(1000)
PedSetActionNode(Henry, "/Global/Nemesis/Offense/Short/Strikes/HeavyAttacks/HeavyPunch2", "Act/anim/Nemesis.act")
Wait(1000)
PedSetActionNode(Henry, "/Global/Nemesis/Offense/Short/Strikes/LightAttacks/LeftHook/RightCross/HeavyAttacks/SuperUppercut", "Act/anim/Nemesis.act")
Wait(1000)
PedSetActionNode(Henry, "/Global/Nemesis/Offense/Short/Strikes/HeavyAttacks/HeavyPunch2", "Act/anim/Nemesis.act")
Wait(1000)
PedSetActionNode(Henry, "/Global/BOSS_Russell/Offense/Short", "Act/anim/BOSS_Russell.act")
Wait(2000)
PedSetActionNode(Henry, "/Global/BOSS_Russell/Offense/Medium/Strikes/HeavyAttacks", "Act/anim/BOSS_Russell.act")
Wait(2000)
PedSetActionNode(Henry, "/Global/BOSS_Russell/Offense/Medium/Strikes/Unblockable/DoubleAxeHandle", "Act/anim/BOSS_Russell.act")
SoundPlayScriptedSpeechEvent(Henry, "FIGHT", 0, "large")
end

F_HenryRekt = function()
if PedIsDead(Henry) and l_20_0 == false then
TextPrintString("Henry : Okay, okay Gary is on the other side of Bullworth!", 3, 2)
Wait(4000)
PlayerSetControl(1)

PedClearAllWeapons(gPlayer)
PedSetWeapon(gPlayer,-1)

Omar = PedCreateXYZ(47,547.2872,-72.0048,5.4388)

Blip605 = BlipAddXYZ(541.4063,-69.8235,5.4189,0)
F_GoToTheChemPlant()
l_20_0 = true
end
end

F_GoToTheChemPlant = function()
  local x,y = 547,-72
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
PedSetHealth(Omar, 2000)
 
  BlipRemove(Blip605)
 
PlayerSetControl(0)
CameraSetFOV(75)
CameraSetWidescreen(true)
CameraFollowPed(Omar)
 
  TextPrintString("Omar : What in the hell are you doing here?!",3,2)
  Wait(4000)
  TextPrintString("Omar : Oh right Gurney sent you, boy's take care of Jimmy!",3,2)
  Wait(4000)
 
  Wait(100)
  PedClimbLadder(Omar, 547.2529, -72.0230, 5.4388, 1)
  SoundStopCurrentSpeechEvent(Omar)
  SoundPlayScriptedSpeechEvent(Omar, "FIGHT_INITIATE", 0, "large")
  Wait(5800)
  PedStop(Omar)
  PedClearObjectives(Omar)
  Wait(3560)
  PedMoveToXYZ(Omar,3,547.1614, -77.9856, 12.6107)
  SoundStopCurrentSpeechEvent(Omar)
  SoundPlayScriptedSpeechEvent(Omar, "FIGHT_INITIATE", 0, "large")
 
   Duncan = PedCreateXYZ(44,541.4063,-69.8235,5.4189)
  Zoe = PedCreateXYZ(48,541.4063+1,-69.8235+1,5.4189+1)
 Otto = PedCreateXYZ(42,541.4063+2,-69.8235+2,5.4189+2)
Jerry2 = PedCreateXYZ(41,541.4063+3,-69.8235+3,5.4189+3)

  PedSetPedToTypeAttitude(Duncan, 13, 0)
  PedSetPedToTypeAttitude(Zoe, 13, 0)
  PedSetPedToTypeAttitude(Otto, 13, 0)
  PedSetPedToTypeAttitude(Jerry2, 13, 0)

PedAttackPlayer(Duncan, gPlayer,3)
PedAttackPlayer(Zoe, gPlayer,3)
PedAttackPlayer(Otto, gPlayer,3)
PedAttackPlayer(Jerry2, gPlayer,3)
 
CameraFollowPed(gPlayer)
PlayerSetControl(1)
CameraSetWidescreen(false)

l_69_1 = false
end

F_Secondinstance3 = function()
if PedIsDead(Duncan) and PedIsDead(Zoe) and PedIsDead(Otto) and PedIsDead(Jerry2) and l_69_1 == false then
TextPrintString("Now look around, find Omar!",4,1)
Wait(6000)
Blip606 = BlipAddXYZ(547.2529, -72.0230, 5.4388,0)
Wait(4000)

  BlipRemove(Blip606)

  PedSetPedToTypeAttitude(Omar, 13, 0)
 
  PedSetDamageTakenMultiplier(Omar, 3, 0.5)
  PedSetDamageTakenMultiplier(Omar, 0, 0.5)
 
  PedAttackPlayer(Omar, gPlayer,3)
 
  PlayerSocialDisableActionAgainstPed(Omar, 35, true)
  PlayerSocialDisableActionAgainstPed(Omar, 23, true)
  PlayerSocialDisableActionAgainstPed(Omar, 30, true)
  PlayerSocialDisableActionAgainstPed(Omar, 29, true)
  PlayerSocialDisableActionAgainstPed(Omar, 28, true)
 
  gTroyBlip = AddBlipForChar(Omar, 2, 26, 4)
 
  PedShowHealthBar(Omar, true, "N_Omar", true)
 
  CreateThread("main10")
 
l_69_1 = true
l_32_2 = false
end
end

main10 = function()
repeat
F_SuperAttack2()
Wait(0)
until not PedIsValid(Omar) or PedIsDead(Omar) or PedGetHealth(Omar) < 0
end

F_SuperAttack2 = function()
Wait(2000)
PedSetActionNode(Omar, "/Global/P_Grappler_A/Offense/Medium/Strikes/Kick/TauntKick", "act/anim/P_Grappler_A.act")
Wait(2000)
PedSetActionNode(Omar, "/Global/P_Bif/Offense/Special/HeavyAttacks", "act/anim/P_Bif.act" )
Wait(2000)
PedSetActionNode(Omar, "/Global/J_Melee_A/Offense/Short/Strikes/LightAttacks/RightHand/LeftHand", "act/anim/J_Melee_A.act" )
Wait(2000)
PedSetActionNode(Omar, "/Global/P_Bif/Offense/Short/Strikes/LightAttacks/JAB/Cross", "Act/anim/P_Bif.act")
Wait(2000)
PedSetActionNode(Omar, "/Global/J_Grappler_A/Offense/Medium/Strikes/HeavyAttacks/RightPunch/Axehandle", "act/anim/J_Grappler_A.act" )
Wait(2000)
PedSetActionNode(Omar, "/Global/J_Mascot/Offense/Medium/Strikes/LightAttacks/WindMill_R/WindMill_L/HeavyAttacks/SwingPunch_R", "act/anim/J_Mascot.act")
SoundPlayScriptedSpeechEvent(Omar, "FIGHT", 0, "large")
Wait(2000)
end

F_OmarRekt = function()
if PedIsDead(Omar) and l_32_2 == false then
Blip607 = BlipAddXYZ(547.9983, -493.7216, 4.4139,0)
TextPrintString("Search around for Edgar!", 4, 1)
Wait(4000)
F_GoToTheChemPlant4()
l_32_2 = true
end
end

F_GoToTheChemPlant4 = function()

  local x,y = 547,-493
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  BlipRemove(Blip607)
 
  AreaTransitionXYZ(43, -583.3693, -621.5286, 4.5042)
 
  SoundPlayInteractiveStreamLocked("MS_FightingJohnnyVincentBikeRide.rsm", MUSIC_DEFAULT_VOLUME)
 
  Blip609 = BlipAddXYZ(-589.9700, -602.6350, 4.4424, 0, 2)
  VehicleCreateXYZ(272, -589.9700, -602.6350, 4.4424)
 
  TextPrintString("Edgar should be at the Junk-yard!", 4, 1)
  Wait(4000)
  TextPrintString("Get the bike and try and find him!", 4, 1)
  Wait(4000)
 
  BlipRemove(Blip609)

  F_GoToTheChemPlant5()
end

F_GoToTheChemPlant5 = function()

  local x,y = -745,-610
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
  BlipRemove(Blip610)
 
  PedSetWeapon(Edgar, 342)
 
    PedSetAITree(Edgar, "/Global/AI_EDGAR_5_B", "Act/AI/AI_EDGAR_5_B.act")
  PedSetActionTree(Edgar, "/Global/DO_Edgar", "Act/Anim/DO_Edgar.act")
 
  PedSetPedToTypeAttitude(Edgar, 13, 0)
 
  PedSetDamageTakenMultiplier(Edgar, 3, 0.5)
  PedSetDamageTakenMultiplier(Edgar, 0, 0.5)
 
  PedAttackPlayer(Edgar, gPlayer,3)
 
  PlayerSocialDisableActionAgainstPed(Edgar, 35, true)
  PlayerSocialDisableActionAgainstPed(Edgar, 23, true)
  PlayerSocialDisableActionAgainstPed(Edgar, 30, true)
  PlayerSocialDisableActionAgainstPed(Edgar, 29, true)
  PlayerSocialDisableActionAgainstPed(Edgar, 28, true)
 
  gTroyBlip = AddBlipForChar(Edgar, 2, 26, 4)
 
  PedShowHealthBar(Edgar, true, "N_Edgar", true)
 
     Blip610 = BlipAddXYZ(-745.8731,-610.8690,3.2883, 0, 2)
PickupCreateXYZ(342, -745.8731,-610.8690,3.2883, "WaterPipe")
 
  TextPrintString("Pick-up the Pipe!", 4, 1)
  Wait(2000)
  BlipRemove(Blip610)
 
  SoundPlayInteractiveStreamLocked("MS_FightingJohnnyVincentBossFight.rsm", MUSIC_DEFAULT_VOLUME)
end

F_EdgarRekt = function()
if PedIsDead(Edgar) then

  AreaTransitionXYZ(0, 547.9983, -493.7216, 4.4193)

  TextPrintString("Now go and Find Gary!", 4, 1)
  Wait(4000)
 
  Blip612 = BlipAddXYZ(540.2351, -470.5578, 4.4201,0)
 
  Gary = PedCreateXYZ(130,540.2351, -470.5578, 4.4201)
 
  F_FindGary()
end
end

F_FindGary = function()

  local x,y = 542,-471
  local r1 = x + 3.5
  local r2 = y + 3.5
  local r3 = x - 3.5
  local r4 = y - 3.5
  repeat
    Wait(0)
  until PedInRectangle(gPlayer,r1,r2,r3,r4)
 
     PedRecruitAlly(gPlayer, Gary)
   PedGuardPed(Gary, gPlayer)
   gPeteBlip = AddBlipForChar(Gary, 6, 2, 2)
   PedSetInfiniteSprint(Gary, true)
   
       Wait(6000)
   TextPrintString("Gary : It took you long enough you slacker!", 3, 2)
   
   BlipRemove(Blip612)

   SoundPlayMissionEndMusic(true, 8)
MissionSucceed(true, false, false)
CameraSetWidescreen(true) 
Wait(1000)
CameraFade(700, 0)
AreaTransitionXYZ(14, -501.4, 316.11, 31.5)
Wait(500)
CameraAllowChange(true)
SoundSetAudioFocusPlayer()
CameraReturnToPlayer()
CameraReset()
CameraSetWidescreen(false)
PlayerSetControl(1)
end

main = function()
LoadAllAnim()
repeat
F_Secondinstance2()
F_ThirdInstance()
F_HenryMiniBossFight()
F_HenryRekt()
F_Secondinstance3()
F_OmarRekt()
F_EdgarRekt()
Wait(0)
until not Alive
end
« Last Edit: March 09, 2016, 04:27:18 PM by AlphaTech »

Offline DahCobra33

  • Decepticon
  • Hero Member
  • ****
  • Posts: 3,057
  • Gender: Male
  • I don't deal with psychos,I put em' away...
    • View Profile
Re: Bully SE : Find Gary Beta Mission
« Reply #1 on: July 14, 2015, 07:26:38 PM »
Nice work but...What do you mean with "BETA"?
Is it a Beta work you're up to?
Or an Unused Bully mission you're recreating?

deadpoolXYZ

  • Guest
Re: Bully SE : Find Gary Beta Mission
« Reply #2 on: July 14, 2015, 07:36:29 PM »
Nice work but...What do you mean with "BETA"?
Is it a Beta work you're up to?
Or an Unused Bully mission you're recreating?

It's his custom mission.

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: Bully SE : Find Gary Beta Mission
« Reply #3 on: July 14, 2015, 08:21:18 PM »
I find it confusing to call this "beta" since people will probably think it's a recreation of a beta mission (which I did when I first seen the title) but other than that it looks like a cool start, good luck on the mission.

Offline AlphaTech

  • LostInSpace
  • Sr. Member
  • ***
  • Posts: 758
  • Gender: Male
  • The name's AlphaTECH, whatca need help with?! :)
    • View Profile
Re: Bully SE : Find Gary Custom Mission
« Reply #4 on: July 14, 2015, 08:44:13 PM »
Sorry about that and it is just a short testing mission for people who wanna learn how to make missions. I should get to releasing it later today.

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: Bully SE : Find Gary Custom Mission
« Reply #5 on: July 14, 2015, 08:47:24 PM »
I have a bunch of functions related to missions... I may post a topic helping people too if you don't mind me making one too lol.

Offline AlphaTech

  • LostInSpace
  • Sr. Member
  • ***
  • Posts: 758
  • Gender: Male
  • The name's AlphaTECH, whatca need help with?! :)
    • View Profile
Re: Bully SE : Find Gary Custom Mission
« Reply #6 on: July 14, 2015, 08:53:24 PM »
No problem all the help is needed so many can get to making missions since ita fairly easy. Well to new users of Lua they might have a hard time but should get used to it. Mission making is one of the first things I learned to do in lua.

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: Bully SE : Mission Scripting Tutorial
« Reply #7 on: July 15, 2015, 12:34:23 AM »
Tip: You could of done all those calls to PedSetUniqueModelStatus in a for loop instead to get the same effect with less code.

for i=2,258 do
  PedSetUniqueModelStatus(i,-1)
end

It's nice that you posted it open source though, nice going dawg.

Offline AlphaTech

  • LostInSpace
  • Sr. Member
  • ***
  • Posts: 758
  • Gender: Male
  • The name's AlphaTECH, whatca need help with?! :)
    • View Profile
Re: Bully SE : Mission Scripting Tutorial
« Reply #8 on: July 15, 2015, 12:49:09 AM »
That was the intention if you notice its just a testing script so many things need to be developed on. Their is a certain reason everything isn't in loops or tables. It's supposed to teach the baaics of creating a mission. I forgot to add hint's on fixing things that don't work and such but will get to it soon enough

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: Mission Scripting Tutorial
« Reply #9 on: July 29, 2015, 06:22:29 PM »
Quote
(Daboss found this method out can be good for making custom missions so they don't look like Rockstar Ripoff's I am laughing out loud at your hysterical statement! .  :laugh:

It's actually just a part of the language, and the compiled scripts don't remember which way it was written because syntactically they are the same. So when decompiling it's up to the developer of the decompiler to decide which they prefer because we can't actually know how R* did it.

Offline AlphaTech

  • LostInSpace
  • Sr. Member
  • ***
  • Posts: 758
  • Gender: Male
  • The name's AlphaTECH, whatca need help with?! :)
    • View Profile
Re: Mission Scripting Tutorial
« Reply #10 on: July 29, 2015, 07:01:09 PM »
Okay it doesn't really matter.

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: Mission Scripting Tutorial
« Reply #11 on: July 30, 2015, 02:42:17 AM »
Does anything matter m8?

Offline bullymodder74

  • Jr. Member
  • **
  • Posts: 51
  • Gender: Male
  • Bully Mods
    • View Profile
Re: Mission Scripting Tutorial
« Reply #12 on: December 26, 2015, 02:56:34 PM »
thanks

Offline Unknownsoldier

  • Hero Member
  • ****
  • Posts: 2,773
    • View Profile
Re: Mission Scripting Tutorial
« Reply #13 on: December 28, 2015, 04:31:26 AM »
Boy!



All these bumps are sure giving me a headache! Eh??