Beispiel #1
0
 public void SetLivery(WeaponLivery liveryID, WeaponLiveryColor colorID)
 {
     if (IsMk2)
     {
         WeaponComponent comp = Components.GetMk2CamoComponent((int)liveryID);
         comp.Active = true;
         Function.Call((Hash)0x9FE5633880ECD8ED, Game.PlayerPed.Handle, Hash, comp.ComponentHash, (int)colorID);
     }
     else
     {
         throw new InvalidOperationException("You can't set the livery of a non-Mk2 weapon.");
     }
 }
 public void SetLivery(WeaponLivery liveryID, WeaponLiveryColor colorID)
 {
     if (IsMk2)
     {
         WeaponComponent comp = Components.GetMk2CamoComponent((int)liveryID);
         comp.Active = true;
         API.N_0x9fe5633880ecd8ed(Game.PlayerPed.Handle, (int)Hash, (int)comp.ComponentHash, (int)colorID);
     }
     else
     {
         throw new InvalidOperationException("You can't set the livery of a non-Mk2 weapon.");
     }
 }