internal static void openStorage(IPlayer player) { try { if (player == null || !player.Exists) { return; } int charId = (int)player.GetCharacterMetaId(); if (charId <= 0) { return; } int dimension = player.Dimension; if (dimension <= 10000) { return; } int houseId = dimension - 10000; if (houseId <= 0 || !ServerHouses.ExistHouse(houseId)) { return; } if (!ServerHouses.HasHouseStorageUpgrade(houseId)) { HUDHandler.SendNotification(player, 4, 5000, "Dieses Haus besitzt noch keinen ausgebauten Lagerplatz."); return; } int interiorId = ServerHouses.GetHouseInteriorId(houseId); if (interiorId <= 0) { return; } if (!player.Position.IsInRange(ServerHouses.GetInteriorStoragePosition(interiorId), 2f)) { return; } var houseStorageContent = ServerHouses.GetServerHouseStorageItems(houseId); //Haus Inventar var characterInvArray = CharactersInventory.GetCharacterInventory(charId); //Spieler Inventar player.EmitLocked("Client:FactionStorage:openCEF", charId, houseId, "house", characterInvArray, houseStorageContent); } catch (Exception e) { Alt.Log($"{e}"); } }