Exemple #1
0
        public SpawnCarMenuItem(string carName, string frendlyName)
        {
            Title = frendlyName;
            //try
            //{
            //    var hash = Enum.Parse(typeof(VehicleHash), carName, true);
            //    if (hash != null)
            //        PointTo = new VehicleSpawnAction(Convert.ToUInt32(hash));
            //}
            //catch (Exception e)
            //{
            //    PointTo = new VehicleSpawnAction(carName);
            //}

            PointTo = new VehicleSpawnAction(carName);
        }
Exemple #2
0
 public SpawnCarMenuItem(uint carHash, string frendlyName)
 {
     Title   = frendlyName;
     PointTo = new VehicleSpawnAction(carHash);
 }