public static EMS CreateEMS(Rage.Ped patient, string[] dialog, EMSData ed)
        {
            var e = new EMS(patient, ed.DispatchTo, dialog, ed.TransportToHospital, ed.SpawnAtScene, ed.DispatchFromHospital);

            ApplyServiceProperties(e, ed);
            return(e);
        }
Beispiel #2
0
 internal static List <TrafficCitation> GetTrafficCitationsInHandForPed(Rage.Ped ped)
 {
     if (!ped || !TicketsInPosession.ContainsKey(ped))
     {
         return(null);
     }
     return(TicketsInPosession[ped]);
 }
Beispiel #3
0
 internal static void RemoveTrafficCitationsInHandForPed(Rage.Ped ped)
 {
     if (ped != null) //dont care about game validility of Ped
     {
         if (TicketsInPosession.ContainsKey(ped))
         {
             TicketsInPosession.Remove(ped);
         }
     }
 }
        public static Coroner CreateCoroner(Rage.Ped victim, string[] dialog, CoronerData cd)
        {
            Coroner c;

            if (cd.DispatchFrom != SpawnPoint.Zero)
            {
                c = new Coroner(victim, cd.DispatchTo, cd.DispatchFrom, dialog, cd.SpawnAtScene);
            }
            else
            {
                c = new Coroner(victim, cd.DispatchTo, dialog, cd.SpawnAtScene);
            }

            ApplyServiceProperties(c, cd);
            return(c);
        }
Beispiel #5
0
 internal static void AddTrafficCitationsInHandForPed(Rage.Ped ped, TrafficCitation citation)
 {
     if (ped)
     {
         if (TicketsInPosession.ContainsKey(ped))
         {
             TicketsInPosession[ped].Add(citation);
         }
         else
         {
             TicketsInPosession.Add(ped, new List <TrafficCitation>()
             {
                 citation
             });
         }
     }
 }
Beispiel #6
0
 public static void setVariation(this Rage.Ped ped, Ped.Component component, int drawableIndex, Ped.TextureID texture) => ped.SetVariation((int)component, drawableIndex, (int)texture);