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]); }
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]); }
public WeaponAttachmentInfo(string model, WeaponAttachmentType type) { Model = model; Type = type; }