Example #1
0
 internal static void openHouseSelector(IPlayer player)
 {
     try
     {
         if (player == null || !player.Exists)
         {
             return;
         }
         int charId = (int)player.GetCharacterMetaId();
         if (charId <= 0)
         {
             return;
         }
         string info = ServerHouses.GetAllCharacterHouses(charId);
         player.EmitLocked("Client:Townhall:openHouseSelector", info);
     }
     catch (Exception e)
     {
         Alt.Log($"{e}");
     }
 }