예제 #1
0
        public static void RemoveWeaponProp(Client player, WeaponAttachmentType type)
        {
            int type_int = (int)type;

            if (!NAPI.Data.HasEntityData(player.Handle, WeaponKeys[type_int]))
            {
                return;
            }

            GTANetworkAPI.Object obj = NAPI.Data.GetEntityData(player.Handle, WeaponKeys[type_int]);
            obj.Delete();

            NAPI.Data.ResetEntityData(player.Handle, WeaponKeys[type_int]);
        }
예제 #2
0
        public void RemoveWeaponProp(Client player, WeaponAttachmentType type)
        {
            int type_int = (int)type;

            if (!player.hasData(WeaponKeys[type_int]))
            {
                return;
            }

            GrandTheftMultiplayer.Server.Elements.Object obj = player.getData(WeaponKeys[type_int]);
            obj.delete();

            player.resetData(WeaponKeys[type_int]);
        }
예제 #3
0
 public WeaponAttachmentInfo(string model, WeaponAttachmentType type)
 {
     Model = model;
     Type  = type;
 }