Esempio n. 1
0
 static internal void OnListChangedHandler(UIMenu sender, UIMenuListItem list, int newindex)
 {
     switch (list.Text)
     {
     case "Ped Model":
         if (Ped != null)
         {
             Ped.Delete();
         }
         PedHash hash = PedHelper.GetPedFromString(list.Items[newindex].ToString());
         Ped            = World.CreatePed(hash, Game.Player.Character.GetOffsetPosition(new Vector3(0, 2, 0)), Rotation);
         CurrentPedHash = hash;
         break;
     }
 }
Esempio n. 2
0
 public PedHash GetPedHash()
 {
     return(PedHelper.GetPedFromString(PedName));
 }